Problems? Is your data what you think it is? | |
PerlMonks |
Re: map vs. foreachby nardo (Friar) |
on Apr 25, 2001 at 07:07 UTC ( [id://75362]=note: print w/replies, xml ) | Need Help?? |
From a style standpoint, I consider foreach to generally be better than map. For this particular problem, I would use print join("\n", @fields), "\n"; rather than a map or foreach.
In Section
Seekers of Perl Wisdom
|
|