On Mar 9, 3:37 am, que...@gmail.com (Jerald Sheets) wrote: > On Mar 8, 2009, at 1:29 PM, Ron Bergin wrote: > > > > >> #!/usr/bin/perl -w > > > It's better to use the warnings pragma, instead of the -w switch > > Another note on this... I just perldoc'ed it to see what it had to say: > > DESCRIPTION > The "warnings" pragma is a replacement for the command line > flag "-w", > but the pragma is limited to the enclosing block, while the > flag is > global. See perllexwarn for more information. > > If the pragma is limited to the enclosing block but the flag is global > *AND* it is considered best practice to remove the pragma when > distributing your program: > > ote that it may still be appropriate to comment out the use warnings > line when your application or module is deployed, especially if non- > technical users will interact with it, or if it will run in a CGI or > other embedded environment. Issuing warnings in these contexts can > needlessly alarm users, or cause server errors. > You seem to be picking out an exception (which in my experience, rarely occurs) and applying that as the primary rule/guideline.
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/