in reply to Re: �Re: sub and anonymous sub
in thread sub and anonymous sub
Or, just make it a package variable explictly:
sub my_subroutine { local $main::my_subroutine_level = $main::my_subroutine_level + 1; .... }
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: •Re: Re: •Re: sub and anonymous sub
by dmmiller2k (Chaplain) on Jun 21, 2002 at 22:02 UTC | |
by thelenm (Vicar) on Jun 21, 2002 at 22:08 UTC | |
by dmmiller2k (Chaplain) on Jun 21, 2002 at 22:22 UTC |