Your best bet for a concise expressions to be chained are map and grep
print grep { /test/ } @names
N.B.: you are still limited to $_
which means you won't have much use of nested loops with map
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: Concise foreach expression
by LanX
in thread Concise foreach expression
by ram31
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |