Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 pondering the Monastery: (3)
As of 2018-07-18 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (388 votes). Check out past polls.

    Notices?