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.
In reply to Re: Determination of a subs' invocation from within the sub
by BrowserUk
in thread Determination of a subs' invocation from within the sub [RESOLVED]
by Bloodnok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |