To see for yourself how much you want to use strict, write a large ap
without it, then add it in and see what pops up. Its amazing how many silly
mistakes it prevents. I've written aps where I forgot it initially and when
I installed it it was a nightmare to go back and fix everything.
Even more important is the -w switch and -T for cgi-ers. Another one to try
is use diagnostices which is helpful during development.
-WQ
>From: "Brett W. McCoy" <[EMAIL PROTECTED]>
>To: "Stewart, Clay" <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Re: use strict
>Date: Fri, 2 Feb 2001 11:37:49 -0500 (EST)
>
>On Fri, 2 Feb 2001, Stewart, Clay wrote:
>
> > What are the exact disadvantages of not placing 'use strict' when using
>DBI
> > with DBD::Oracle ?
> >
> > I read a lot everywhere to 'use it or else', 'always use it', 'you
>really .
> > . . really should use it' . . . but have not been able to find an
> > explanation of why in detail.
>
>Because it provides a lot of detailed warnings & errors about suspect
>code, improper use of globals, etc. I also recommend the use of -w in
>your bang line, which will also provide insight into errors and warnings.
>Using the strict pragma can also help you answer a lot of questions abotu
>why your code won't run without having to ask the question on a milaing
>list. :-)
>
>-- Brett
>
>http://www.chapelperilous.net/~bmccoy/
>---------------------------------------------------------------------------
>Optimism is the content of small men in high places.
> -- F. Scott Fitzgerald, "The Crack Up"
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com