Declaring a variable twice in the same scope is indeed an error -
No, it's not. The following code works just fine:
my $x = 1; say $x; my $x = 2; say $x;
In reply to Re^3: Help! My variables are jumping off a cliff!
by ikegami
in thread Help! My variables are jumping off a cliff!
by oko1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |