Dear Monks
$a='main'; if (1) { local $a='sub'; print "\n$a"; print "\n$main::a"; } print "\n$a";
OUTPUT:
sub sub main
Needed OUTPUT:
sub main main
But, When I use my instead of local, I get the correct output.
How can i get the main value when use local.
Thanks
In reply to Get the $main value when use local by gopalr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |