sub outside_foo { my $STATIC; my $done = 1; sub foo{ $done or outside_foo(); print "\nSTATIC is ", ++$STATIC; } } foo(); foo(); foo();
In reply to Re: Sub Definitions Within Subs: Best Way to Exploit
by Tetramin
in thread Sub Definitions Within Subs: Best Way to Exploit
by crazysniffable
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |