Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: trimming space from both sides of a stringby mr_mischief (Monsignor) |
on Oct 16, 2010 at 16:04 UTC ( [id://865682]=note: print w/replies, xml ) | Need Help?? |
oh! Right! No dot in there. s/^\s*//; s/\s*$//; instead of course. s/^\s+//; s/\s+$//; should work as well.
In Section
Meditations
|
|