in reply to map vs foreach
in thread Using s///e and it just doesn't feel right

Is that more expressive to you than something like this:

trasform $_ foreach @elements;

If so, how?

Replies are listed 'Best First'.
Re: Re: map vs foreach
by dash2 (Hermit) on Jun 20, 2003 at 17:59 UTC
    No, I quite like the single-line foreach also, but it has the disadvantage of being relatively recent... I think 5.005?? When I started using Perl I had to be _very_ cross-platform, and the habit has stuck.
    A massive flamewar beneath your chosen depth has not been shown here