Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by LanX (Canon)
on Jul 20, 2009 at 22:47 UTC ( #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
Node Status?
node history
Node Type: note [id://781775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-10-25 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls