Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Check Variables for NULL

by jhourcle (Prior)
on Feb 08, 2007 at 11:40 UTC ( #598977=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %values = (
            0      => 0,
            zero   => '0',
    ...
             (($values{$_} or $values{$_} == 0)?1:0),
             (($values{$_} or $values{$_} eq 0)?1:0))
         foreach sort keys %values;
    
  2. or download this
         0 : 0 : 1 :: 1 :: 1
         1 : 1 : 0 :: 1 :: 1
     empty : 0 : 1 :: 1 :: 0
    ...
    string : 1 : 1 :: 1 :: 1
     undef : 0 : 1 :: 1 :: 0
      zero : 0 : 1 :: 1 :: 1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://598977]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-01-17 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (196 votes). Check out past polls.

    Notices?