Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: ||= (poorly documented?)

by frozenwithjoy (Curate)
on Jul 09, 2012 at 06:47 UTC ( #980660=note: print w/ replies, xml ) Need Help??


in reply to Re: ||= (poorly documented?)
in thread ||= (poorly documented?)

If you scroll down in perlop you'll see that style used to describe what // does, so they appear to be equivalent.
|| tests for truthiness (and, therefore, definedness), whereas // only tests for definedness.


Comment on Re^2: ||= (poorly documented?)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-30 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls