By doing this,
if (my $x = 1)You are testing if the variable assignment works which is the wrong way to approach this problem. Try this,
my $x = 1; if ($x > 1) { } # Do something if greater than one elsif ($x < 1) { } # Do something else here
In reply to Re: strange scope
by Herkum
in thread strange scope
by anagramster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |