in reply to Re^4: Map Vs Foreach
in thread Map Vs Foreach

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