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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

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
    Bugger, it's always the simplest solutions I manage to overlook.

    Very many TFT BrowserUk.

    A user level that continues to overstate my experience :-))