Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: ||= (poorly documented?)

by Anonymous Monk
on Jul 09, 2012 at 06:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://980659]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-24 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found