Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by LanX (Chancellor)
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?
[Corion]: ambrus: AnyEvent(::HTTP) doesn't integrate well with Prima, that's my main problem
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2016-12-07 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.