To see the code that is actually getting compiled, try:

$ perl -MO=Deparse -mstrict -we 'my @foo;print @foo;'


"JupiterHost.Net" <[EMAIL PROTECTED]> wrote in message ...

> Correct, except I still think @ ans % don't get uninitialized value
> warnings while $ does:
>
> $perl -mstrict -we 'my $foo;print "hi\n" for $foo;'
> hi
> $
>
> That shows what you said to be accurate.
>
> Then no error:
> $ perl -mstrict -we 'my @foo;print @foo;'
> $
> $ perl -mstrict -we 'my %foo;print %foo;'
> $
>
> Error:
> $ perl -mstrict -we 'my $foo;print $foo;'
> Use of uninitialized value in print at -e line 1.
> $



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to