Perl Whitespace Reg Expression
Steve Jardine
sjardine
Sat Oct 8 23:22:54 PDT 2005
Alright you Perl Heads, here's one for you.
I have a line like this:
abcdef<1 to many spaces>more text
I want to use the splt command so I can get to the "more text" part of the
line, but I do not know how many spaces there may be - it could vary. So,
@line = split(/ /, $_);
$line[1] = ...
is not going to work. Sorry, not a regular expression expert..
Anyone have any ideas?
--
Steve Jardine
More information about the Linux-users
mailing list