Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by ikegami (Pope)
on Jul 20, 2009 at 22:39 UTC ( #781774=note: print w/ replies, xml ) Need Help??


in reply to Re^3: 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?

I expected it to be reduced only to the scope of the file...

There's only one Rexexp package, not one per file.


Comment on Re^4: What is the best way to compare variables so that different types are non-equal? (overloading "cmp")
Replies are listed 'Best First'.
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
    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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2015-07-07 20:40 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 (93 votes), past polls