in reply to Re: Re: Re: Re: foreach/map equivalency
in thread foreach/map equivalency

I'm lost. Upstream a ways, you said "This is wrong." What, precisely, is wrong? I thought, apparently mistakenly, that you were taking exception to my statement that map() iterates over the list... now, it seems that it was my assertion that the two cases were not equivalent because the second didn't use push() as the first did...

I'm in a maze of twisty little passages...

  • Comment on Re: Re: Re: Re: Re: foreach/map equivalency

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: foreach/map equivalency
by chromatic (Archbishop) on Nov 12, 2001 at 23:22 UTC
    The suggestion to use push in the map block was wrong. That's all. (In my opinion, explaining map as a synonym for for doesn't help people understand what map actually does.)

    Part of the confusion is that the original poster needed grep anyway.