in reply to Re^2: Help! My variables are jumping off a cliff!
in thread Help! My variables are jumping off a cliff!
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;
|
|---|