Re: How to put '#!/usr/bin/env perl -w' at the beginning of a perl script?



On 2009-12-30, Ben Morrow <ben@xxxxxxxxxxxx> wrote:
[2] I remember the bad old days of C programming where you could choose
between getting lots of warnings from system header files and turning
off many useful warnings.

This is not my experience with using -w. At least not for a decade.

This will be because most modules 'use warnings', and 'no warnings'
where they need to, which overrides -w.

I call this BS:

.cpan\build>pfind . "/\.pm$/" "=~ /\b use \s+ warnings \b/x" du

9192861 bytes in 932 files, 0 directories

.cpan\build>pfind . "/\.pm$/" du

89051284 bytes in 4312 files, 0 directories

The numbers are duplicated due to ./blib/*, but it does not change
the ratio (which is 10% in metric of byte-of-code ;-).

Yours,
Ilya
.



Relevant Pages

  • Re: Trapping Access messages
    ... Thanks Wayne I found the Tools/Options method but can you point me in the ... "Wayne Morgan" wrote in message ... > delete in code and bypass the warnings. ... The advantage of turning off the warnings in code is that you can ...
    (microsoft.public.access.forms)
  • Re: 1 in character class?
    ... use warnings; ... I'm trying to temporarily deal with simple quoted strings by turning: ...
    (perl.beginners)
  • Re: Delete button
    ... "Dee" wrote in message ... I know I can manually add code to fix this, but I would like to know ... This commonly happens when you have code that turns the warnings off with the statement "DoCmd.SetWarnings False", without subsequently turning them on again with "DoCmd.SetWarnings True". ...
    (microsoft.public.access.forms)
  • Re: can visual basic turn off confirmation of action queries
    ... it looks like SetWarnings does more than turning off action query ... warnings, and apparently unlike turning off the warnings from the menu, doing ... One would think the runtime module would behave the same on all machines, ...
    (microsoft.public.access.modulesdaovba)
  • Re: Include(filename.php) and security
    ... Is there a way I can secure the text.php file without affecting the include_oncecall in abc.php? ... How about turning off warnings? ... Nope, I mean using .htaccess. ...
    (alt.php)