Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: ||= oddity

by throop (Chaplain)
on May 28, 2008 at 22:45 UTC ( [id://688939]=note: print w/replies, xml ) Need Help??


in reply to Re: ||= oddity
in thread ||= oddity

OK, once I knew what the answer was... it helped me find the answer in a manual. From 'Programming Perl, 2nd Edition', pp 92-93. It lists the assignment operators, including = and ||=, and says
List assignment may be done only with the plain assignment operator, = +. In a list context, list assignment returns the list of new values +just as scalar assignment does. ...
Hitting your thumb with a hammer - there's more than one way to do it!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-23 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found