Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: ||= (poorly documented?)

by kcott (Archbishop)
on Jul 09, 2012 at 06:02 UTC ( [id://980653]=note: print w/replies, xml ) Need Help??


in reply to ||= (poorly documented?)

In perlop - Assignment Operators, the example shown for += applies to all the op= operators. So,

$x ||= 2;

is equivalent to

$x = $x || 2;

-- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2025-06-13 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.