Perl Monk, Perl Meditation | |
PerlMonks |
Re: Printing array in scalar contextby TomDLux (Vicar) |
on Aug 08, 2011 at 17:34 UTC ( [id://919285]=note: print w/replies, xml ) | Need Help?? |
If you do put the whole thing in a double-quoted string, the $" separator would apply between array elements, introducting a space at the beginning of each line, other than the first. You would need to localize it to be an empty string, if you wanted to avoid additional characters.
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|