in reply to Re^2: "if" in a my declaration statement causes problem
in thread "if" in a my declaration statement causes problem
My dense skull isn't penetrating this issue. The original poster wroteBoth when I posted and now, the OP reads: my $x = $y if ( <some condition> ); Are you looking at someone else's reply?my $x; # one statement $x = $y if {condition;} # two statement
With the my $x separate and unconditional, the warning in perlsyn doesn't apply.
The output from your strict version doesn't make sense to me, offhand.
|
|---|