Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Why are "a ||= b" and "a = a || b" different?

by saintmike (Vicar)
on Mar 03, 2007 at 01:08 UTC ( [id://603000]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my($ret) ||= foo();
    
  2. or download this
        my($ret) = $ret || foo();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found