"be consistent" | |
PerlMonks |
RE: RE: RE: CGI::Carpby SuperCruncher (Pilgrim) |
on Jul 09, 2000 at 01:31 UTC ( [id://21673]=note: print w/replies, xml ) | Need Help?? |
As far as I know, the use warnings pragma was introduced as:
- it is easier for people who are on non 'shebang supporting' systems to use.
Lexical Warnings The way Perl generates warnings has also been completely revised: as a replacement for the -w flag and the $^W special variable, the warnings pragma gives you more flexibility about what warnings you receive and when. In terms of what, you can now specify warnings by category: there are a bunch of standard categories, such as 'syntax', 'io', 'void', and modules will be able to define their own categories. You can also choose to escalate any categories of warning into a fatal error. As for when, the pragma is lexically scoped, so you can switch it on and off as you wish:
See perllexwarn for how to use this from programs and modules.
In Section
Quests
|
|