[oak perl] Simple Question re Zapping Blanks
Michael Ruggiero
mruggiero at formfactor.com
Wed Nov 9 14:18:14 PST 2005
#a regex wil work;
#replace starting & ending spaces w/ nothing
$string =~ s/^\s+//;
$string =~ s/\s+$//;
-----Original Message-----
From: oakland-bounces at pm.org [mailto:oakland-bounces at pm.org] On Behalf
Of Eugene
Sent: Wednesday, November 09, 2005 2:17 PM
To: oakland at pm.org
Subject: [oak perl] Simple Question re Zapping Blanks
In Perl,
what's the best way (or a good way, anyway) to zap leading and trailing
blanks in a string?
_______________________________________________
Oakland mailing list
Oakland at pm.org
http://mail.pm.org/mailman/listinfo/oakland
More information about the Oakland
mailing list