Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2015-08-04 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (76 votes), past polls