while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; }
my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; }
What is the different between these two code in case of "my" usage ?
In reply to Different usage of "my" by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |