On Tue, 7 Nov 2000, Paul DuBois wrote:

> At 10:25 AM +0100 11/7/00, [EMAIL PROTECTED] wrote:
> >On Tue, 7 Nov 2000, Ron Rademaker wrote:
> >
> >Hi,
> >
> >>  You would think so, however every doc I read (including the one you
> >>  pointed out to me) told me that perl gives me a warning:
> >>
> >>  Variable $foo will not stay shared at ....
> >>
> >>  I do use -w so I should get that warning, but I don't. The variable stays
> >>  defined, but it doesn't have the value of the old variable, it just passes
> >>  the defined($foo) test but the value has changed to an empty array (from a
> >>  full array).
> >
> >-w has no effect, read the guide again and use PerlWarn On :-)
> 
> Please explain, the guide appears to recommend -w as a useful
> diagnostic technique (and the "Command Line Switches (-w, -T,
> etc)" section says -w works).

The guide is correct. -w in the shebang line is equal to 'local $^W=1' for
the file scope. and it does have an effect (for the file it's defined in).

> 
> >
> >Bye,
> >remco
> >
> >/----------------------------------------------------------------------\
> >| Remco Schaar                                                         |
> >| e-mail: [EMAIL PROTECTED]                                      |
> >\----------------------------------------------------------------------/
> >
> >     South Park meets Linux:
> >         - "Oh my God, they killed init!"
> >         - "You bastards!"
> 
> 



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org


Reply via email to