Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: What is true and false in Perl?

by Anonymous Monk
on Oct 17, 2012 at 17:07 UTC ( #999577=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       if ( (undef,undef) ) { }   # a list of undefs is false
    
       @arr = (undef,undef);
       if ( @arr ) {}             # an array of undefs is true
    
  2. or download this
       $_ = 'x';
       if (($a,$b) = m/(.)(.)/) { }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999577]
help
Chatterbox?
Discipulus dscivered BASH supports also double quotes..

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-11-24 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (348 votes). Check out past polls.

    Notices?