Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What is the best way to compare variables so that different types are non-equal?

by kyle (Abbot)
on Jul 19, 2009 at 16:15 UTC ( #781460=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Scalar::Util qw( blessed reftype );
    
    ...
     && reftype $_[0] eq reftype $_[1]
     &&         $_[0] eq         $_[1]
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://781460]
help
Chatterbox?
[Lady_Aleena]: james28909, that's almost as bad as get_.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-05-24 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?