Re: use warnings, was Re: problem with rand on OSX

From: ? the Platypus {aka David Formosa} (dformosa_at_zeta.org.au)
Date: 09/30/04


Date: 30 Sep 2004 20:24:46 +1000


"David H. Adler" <dha@panix2.panix.com> writes:

[...]

> For one thing the warnings pragma is more flexible than -w. On the
> other hand, if you're using a sufficiently old version of perl, it does
> not exist.

With 5.8.0 you could switch off -w dervived warnings using no warnings
'blah'; just as effectively as if you used use warnings; And -w takes
only two keypresses.

-- 
Please excuse my spelling as I suffer from agraphia. See
http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more.
Free the Memes.


Relevant Pages

  • Re: error messege: "subroutine Cwd::fastcwd redefined"
    ... Attached is the file created by perlbug. ... asking for all warnings even though Cwd is trying (via the older ... case it looks like a bug in the Perl distribution. ... HOME (unset) ...
    (perl.beginners)
  • Re: What do you need to have to be considered a Master at Perl?
    ... (--and note the warnings, in particular: ... Because perl's regex engine is not currently re-entrant, ... Quote from "perlre - Perl regular expressions" ... ... defined inside an eval'ed pattern are not available ...
    (comp.lang.perl.misc)
  • Re: file rename help
    ... > I am very novice as you will see in my Perl skills. ... use warnings; ... because I am not afraid of undef values, ... even as a piece of shell code, your command is wasting at least two ...
    (comp.lang.perl.misc)
  • Re: Multiple Parameters
    ... The above two lines ask Perl to hold you to the laws of good ... programming. ... you'll get better error messages and warnings ...
    (perl.beginners)
  • Re: debugger exiting
    ... strict and warnings pragmas. ... I think portraying Perl as a command-line tool limits it to fewer platforms than ... work only as a Unix shell command line. ...
    (perl.beginners)