Don't ask to ask, just ask | |
PerlMonks |
Re: for, foreach and $_...by bm (Hermit) |
on Aug 18, 2003 at 14:09 UTC ( [id://284579]=note: print w/replies, xml ) | Need Help?? |
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. :-)
In Section
Seekers of Perl Wisdom
|
|