Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: trimming space from both sides of a stringby jwkrahn (Abbot) |
on Oct 16, 2010 at 19:31 UTC ( [id://865717]=note: print w/replies, xml ) | Need Help?? |
s/^\s+//; s/\s+$//; works better than s/^\s*//; s/\s*$//;.
In Section
Meditations
|
|