in reply to Re: Getting function name
in thread Getting function name
sub testFunc { print &getFuncName(); } sub getFuncName { return (caller(1))[3]; } testFunc(); __output__ main::testFunc
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Getting function name
by shotgunefx (Parson) on Dec 31, 2002 at 14:14 UTC |