in reply to Re: printing elements of an array on new lines
in thread printing elements of an array on new lines

Limbic~Region

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

Replies are listed 'Best First'.
Re: Re: Re: printing elements of an array on new lines
by Limbic~Region (Chancellor) on Aug 23, 2003 at 19:57 UTC
    dave,
    You ever start typing a word and end up automatically type something else out of habit? That should have been:
    print map {$_ . "\n"} @array;
    Thanks - L~R