one (or multiple) simple blocks are sufficient
{ my $var; #... maincode ... } sub function1 { # can't access $var }
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^2: does perl have a concept of "int main()"? (variable scoping question)
by LanX
in thread does perl have a concept of "int main()"? (variable scoping question)
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |