Chas Owens wrote:
The code I am referring to is
print +(join "\n", @LIST), "\n" ;
Which does the same thing as
print map { "$_\n" } @list;
The only difference between them is if $, is set.
True, in this case they are.
But the way you stated your preferences implied they are the same, or at
least, a replacement. As I said, the difference is subtle but significant.
Join works on the "gaps" between elements of an array.
Map works on every element.
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/