in reply to Re^5: Dynamic Package Name & Subroutine Call
in thread Dynamic Package Name & Subroutine Call

sure it has :)

$ perl -le " sub fudge { 42 } print main->can(q/fudge/)->() " 42

Replies are listed 'Best First'.
Re^7: Dynamic Package Name & Subroutine Call
by ikegami (Patriarch) on Dec 19, 2012 at 12:46 UTC
    That has always searched main's inheritance tree in the case where &main::fudge didn't exist, and that's not the right thing for subs.

      That has always searched main's inheritance tree in the case where &main::fudge didn't exist, and that's not the right thing for subs.

      Sure, but setting up an inheritance tree for main is the bug :)