Perl best practices (was: question ... Split operator in Perl)
John Abreau
jabr at blu.org
Thu Sep 13 01:34:10 EDT 2007
On Wed, September 12, 2007 9:37 pm, Ben Scott said:
> s/^[\x20\t]*//; # trim leading space
> s/[\x20\t]*$//; # trim trailing space
>
Any particular reason to use [\x20\t] instead of \s ?
--
John Abreau / Executive Director, Boston Linux & Unix
IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the gnhlug-discuss
mailing list