in reply to Re: $^W or require warnings and import warnings;
in thread $^W or require warnings and import warnings;

have you actually tried your code? because I got...
Use of uninitialized value in concatenation (.) or string at - line 10 +.
It works because the import warnings sentence inside the BEGIN block changes the value of ${^WARNING_BITS} at compile time.

Replies are listed 'Best First'.
Re^3: $^W or require warnings and import warnings;
by renz (Scribe) on Jun 15, 2005 at 21:31 UTC

    I get the following results...

    C:\Perl\bwb>perl -v This is perl, v5.8.6 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) ... C:\Perl\bwb>perl 466922.pl Warnings on: Use of uninitialized value in concatenation (.) or string at 2.pl line + 10. Warnings off:

    /renz.
    "Call on God, but row away from the rocks."
    --Hunter S. Thompson.