To follow up on myself, here's the quote from Larry. He even said it in a debate about map-in-void-context:
Date: Mon, 1 Nov 1999 15:46:45 -0800 (PST) From: Larry Wall <larry at wall.org> To: hv at crypt0.demon.co.uk Cc: Larry Wall <larry at wall.org>, Simon Cozens <simon at brecon.co.u +k>, perl5-porters at perl.org Subject: Re: grep/map in void context hv at crypt0.demon.co.uk writes: : Isn't the point that (void)'grep EXPR, LIST' is now better written a +s : 'EXPR for LIST'? Or am I misunderstanding your point here? It really doesn't bother me if people want to use grep or map in a voi +d context. It didn't bother me before there was a for modifier, and now that there is one, it still doesn't bother me. I'm just not very easy to bother. The argument against using an operator for other than its primary purpose strikes me the same as the old argument that you shouldn't hav +e sex for other than procreational purposes. Sometimes side effects are more enjoyable than the originally intended effect. That being said, I'd never grep someone in a void context myself. Larry

In reply to Re^5: Map Vs Foreach by JavaFan
in thread Map Vs Foreach by perlCrazy

Title:
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, details, 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, summary, 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.