Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: What is the best way to compare variables so that different types are non-equal? (overloading "cmp")

by LanX (Saint)
on Jul 20, 2009 at 22:47 UTC ( [id://781775]=note: print w/replies, xml ) Need Help??


in reply to Re^4: What is the best way to compare variables so that different types are non-equal? (overloading "cmp")
in thread What is the best way to compare variables so that different types are non-equal?

Im still confused, there is no way to reduce the effect of overloading to just the file which imports a modul with an overloaded Regexp package?

(except maybe implementing a switch to default behavior within the overloading methods)

Cheers Rolf

UPDATE: might be possible with eval 'no overload "cmp"; see Run time Overloading

  • Comment on Re^5: What is the best way to compare variables so that different types are non-equal? (overloading "cmp")
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-16 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found