http://www.perlmonks.org?node_id=284579


in reply to for, foreach and $_...

Yes, you're right. Your last solution is probably preferable. You can also do things like  print for @array; which again uses $_.

Isn't that nice? Sometimes it is obvious the Perl was conceived by a linguist. :-)
--
bm