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
In Section
Seekers of Perl Wisdom