Perl Whitespace Reg Expression
Collins Richey
crichey
Sun Oct 9 12:16:24 PDT 2005
On 10/9/05, Bill Campbell <linux-sxs at celestial.com> wrote:
>
> my @line = split('\s', $_);
>
Just a minor nitpick. I use
my @line = split('\s+', $_);
To account for one or many whitespaces.
--
Collins Richey
Debugging is twice as hard as writing the code ... If you write
the code as cleverly as possible, you are, by definition, not
smart enough to debug it.
-Brian Kernighan
More information about the Linux-users
mailing list