But how is that better (in the sense of more clear or familiar) than, say,
print "do something with $_ \n" for grep $_ != 0, @tt;
(already suggested by Eily here)?
Give a man a fish: <%-{-{-{-<
In reply to Re^2: loop array excluding some elements
by AnomalousMonk
in thread loop array excluding some elements
by IB2017
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |