Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Rosetta Dispatch Table

by tybalt89 (Parson)
on Nov 26, 2017 at 18:45 UTC ( #1204291=note: print w/replies, xml ) Need Help??


in reply to Re^2: Rosetta Dispatch Table
in thread Rosetta Dispatch Table

Is there a case that ->can is needed that is not caught by UNIVERSAL::callback ?

Replies are listed 'Best First'.
Re^4: Rosetta Dispatch Table
by LanX (Archbishop) on Nov 26, 2017 at 20:36 UTC
Re^4: Rosetta Dispatch Table
by shmem (Chancellor) on Nov 26, 2017 at 19:26 UTC
    Is there a case that ->can is needed that is not caught by UNIVERSAL::callback ?

    No, afaik; it rather catches too much. If some package ought to have a callback method which it hasn't due to some fubar, UNIVERSAL::callback kicks in - long faces, head-scratching. But! if someone writes a method/function for package UNIVERSAL, they should know what they are doing, and my bets are that you do.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re^4: Rosetta Dispatch Table
by LanX (Archbishop) on Nov 26, 2017 at 18:54 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-06-01 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?