in reply to can split() use a regex?
If you really wanted to split on '\d+\s+' you'd need to single quote the regex, ie:
my ($one, $two) = split('\d+\s+', $line);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: can split() use a regex?
by davidrw (Prior) on Jun 17, 2006 at 16:02 UTC |
In Section
Seekers of Perl Wisdom