in reply to Determination of a subs' invocation from within the sub [RESOLVED]
is it posible to be able to distinguish between the following 2 possible invocations ... &some_sub; and some_sub(@_); ??
Yes. Inspect (caller(0))[4] to determine if the function was called with or without arguments.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determination of a subs' invocation from within the sub
by Bloodnok (Vicar) on Mar 12, 2014 at 17:37 UTC |