in reply to Re^3: my Scope Pop Quiz
in thread my Scope Pop Quiz

$ perl -we 'use strict; my $rv = 42 for (1); print $rv,$/' Use of uninitialized value in print at -e line 1.
Seems to be printing a warning for me. The original code didn't include "use warnings" in it, so I added some and the warning expected did appear.

Replies are listed 'Best First'.
Re^5: my Scope Pop Quiz
by ikegami (Patriarch) on Apr 09, 2005 at 14:26 UTC
    Not on my ActivePerl v5.6.1. Is that what you're using? I tried both use warnings; and -w, like I said in the first post. Very odd, eh?