|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: substr questionby rowdog (Curate) |
| on Jun 18, 2010 at 21:20 UTC ( #845460=note: print w/ replies, xml ) | Need Help?? |
|
The length is off by one because you add not only the part, but a new space as well. The easy fix is to delete the = from <= $len
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||