in reply to Re^3: variables names used to define variables
in thread variables names used to define variables

($sub =~ /^(.*)::/ ? $1 : __PACKAGE__)->can($sub)->();

Replies are listed 'Best First'.
Re^5: variables names used to define variables
by Aristotle (Chancellor) on Dec 11, 2003 at 17:47 UTC
    So you've replaced the symbolic lookup of $sub by a symbolic lookup of "can", which, if it reaches UNIVERSAL::can, results in a symbolic lookup for $sub. And now?

    Makeshifts last the longest.