go ahead... be a heretic | |
PerlMonks |
Re: What am I not understanding about $,by Athanasius (Archbishop) |
on May 01, 2016 at 06:17 UTC ( [id://1161975]=note: print w/replies, xml ) | Need Help?? |
Actually, in this case the space is being added, not by the output field separator ($,), but by the list separator ($"), because the array slice is stringified. To get what you want, you can either (1) set $" to the empty string (not undef, that gives a warning), or (2) not stringify the array slice in the print statement:
See the entries for $" and $, in perlvar. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|