Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: 'can' operator?

by Zaxo (Archbishop)
on Nov 18, 2002 at 20:33 UTC ( #213885=note: print w/ replies, xml ) Need Help??


in reply to 'can' operator?

The overload pragmatic provides a couple of functions you can use for that.

  • overload::Overloaded('$foo+1') takes a perl expression as a string and tells you whether any of its operators are overloaded in the context of that expression.
  • overload::Method($obj,'+') returns a code reference to the method overloading '+' for $obj, or undef if not overloaded.

After Compline,
Zaxo


Comment on Re: 'can' operator?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-07-06 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls