In the OP's code,
sub S1 { return qw( a b ); } sub S2 { return qw( c ); }
S2 would get called and the result would be @f=qw(c). But with yours, S2 doesn't get called and the result is @f=qw(b).
In reply to Re^2: creating a variable in an if statement
by ikegami
in thread creating a variable in an if statement
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |