Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Dynamic Package Name & Subroutine Call

by Anonymous Monk
on Dec 17, 2012 at 08:51 UTC ( [id://1009125]=note: print w/replies, xml ) Need Help??


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

can should be used for methods and only for methods

that boat has sailed a long time ago :)

Replies are listed 'Best First'.
Re^5: Dynamic Package Name & Subroutine Call
by ikegami (Patriarch) on Dec 17, 2012 at 13:06 UTC
    That makes no sense. This isn't a change; can has never done the right thing for non-methods.

      sure it has :)

      $ perl -le " sub fudge { 42 } print main->can(q/fudge/)->() " 42
        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1009125]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found