Keep It Simple, Stupid | |
PerlMonks |
Re^2: In search of a better way to trim string lengthby kiat (Vicar) |
on Jul 19, 2004 at 08:47 UTC ( [id://375493]=note: print w/replies, xml ) | Need Help?? |
Thanks, theAcolyte! Ran your code. I think you need to add a space here: With your code, when I passed the sub a string such as "this is a very long sentence without spaces in between", it gets transformed to "thisisaverylongsentencewithout" i.e. the original spaces were gone. cheers
In Section
Seekers of Perl Wisdom
|
|