Daniel Staal wrote: > --On Friday, September 26, 2003 20:29 -0400 David Wall > <[EMAIL PROTECTED]> wrote: > > > > >> In the book I bought, Programming Perl, by O'Reilly they say I > >> should use warnings instead of -w after the shebang and the perl > >> path because -w is deprecated. > >> > >> Is this true? Also, will use warnings; work on versions of perl > >> < 5.8? > > > > My copy of the Camel is at work, but if it says -w is deprecated, > > I'm inclined to believe it. :-) > > Just checked my copies of both the Camel and the Lama. Both say 'use > warnings' is preferred over '-w' because it gives finer grained > control. Neither, as far as I can tell, says that '-w' is actually > deprecated. > > Daniel T. Staal
Good point. I use both, and FWIW, when I turnoff warnings selctively within a block, it works. Could be that the first thing the warnings module does is to disable or cancel the pragma. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]