Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 cooling their heels in the Monastery: (7)
As of 2014-08-28 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (256 votes), past polls