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

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

To be fair, some things are a pain in the ass to google properly (especially if you aren't familiar with the topic in the first place). Also, documentation always makes more sense when you already know the topic. :P

That is not what I'm talking about since the OP was able to find perlop, but the problem was, it merely listed ||= it didn't explain much about it.

You had to read large chunks of perlop to figure out ||= is two operators in one, assignment and logical-or, and even then it didn't explain truthiness

On truthiness

How ||= works , its FAQ even though it doesn't search that way :)

Found 9 nodes roughly between 2012-07-09 and 1999-10-04 (searched 100.00% of DB).

where title contains "||="

2012-07-09 live4tech ||= (poorly documented?) SoPW
2010-10-24 perl-diddler is ||= threadsafe? SoPW
2009-04-07 Anonymous Monk What is the difference between |= and ||=? SoPW
2009-01-06 Brovnik ||= in Hash Slice SoPW
2008-09-19 Anonymous Monk What the heck does "tests->{$stype} ||= {};" do? SoPW
2008-05-28 throop ||= oddity SoPW
2007-11-27 Anonymous Monk Or, Or, Equals Zero, $x ||= 0 SoPW
2007-03-02 saintmike Why are "a ||= b" and "a = a || b" different? SoPW
2006-01-12 demerphq Are "$hash{$_} ||= 1 + keys %hash" and variants well defined or not? Med

In reply to Re^3: ||= (poorly documented?) (on truthiness) by Anonymous Monk
in thread ||= (poorly documented?) by live4tech

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (4)
    As of 2018-02-26 02:04 GMT
    Find Nodes?
      Voting Booth?
      When it is dark outside I am happiest to see ...

      Results (316 votes). Check out past polls.