I'm not sure, but why this can work?

use strict;
use warnings;
use Data::Dumper;

my $y=0;
my @x =(1,2,3) if $y;
print Dumper [EMAIL PROTECTED];


Since $y is false, it seems @x shouldn't be declared.
But why the last print can work?

-- 
J. Peng - QQMail Operation Team
eMail: [EMAIL PROTECTED]  AIM: JeffHua

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


Reply via email to