in reply to Re: creating a variable in an if statement
in thread creating a variable in an if statement

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).