Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: ||= (poorly documented?)

by Anonymous Monk
on Jul 09, 2012 at 06:36 UTC ( #980659=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e "my $shoo = 50; $shoo ||= 100; print $shoo;"
    
  2. or download this
    50
    
  3. or download this
    perl -e "$shoo=50; $shoo = ($shoo)?50 : 100;print $shoo;"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-05-28 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?