my $var; $var=1; my $var; $var=2;
The second $var "masks earlier declaration in same scope". You declare the same variable name a second time.
In reply to Re: "my" variable masks earlier declaration in same scope
by Skeeve
in thread "my" variable masks earlier declaration in same scope
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |