in reply to Re: Concise foreach expression
in thread Concise foreach expression

> map { /test$/ and say } @names;

variation:

/test$/ and say for @names;

( of course always with use feature 'say';)

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^3: Concise foreach expression
by AppleFritter (Vicar) on Aug 29, 2014 at 16:27 UTC
    TMTOWTDI at its best!