Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: undef-safe equality (shorter)

by Roy Johnson (Monsignor)
on Apr 21, 2005 at 22:11 UTC ( #450216=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub iseq {
      (!defined $_[0] || $_[0].9) eq (!defined $_[1] || $_[1].9);
    }
    
  2. or download this
      1 == keys %{{map {(!defined()||$_.9)=>1} @_}};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-07-10 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (197 votes), past polls