Re this snippet:
print map {$_ .= "\n"} @array;As the OP is obviously a beginner, I believe that the proviso to this, namely that it changes @array (adding a newline to each element), should be clearly stated.
dave
In reply to Re: Re: printing elements of an array on new lines
by Not_a_Number
in thread printing elements of an array on new lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |