in reply to Re^2: Split on whitespace or other criteria
in thread Split on whitespace or other criteria

@array = grep { $_ !~ /^\s*$/ } split '(\d+(?:\.\d*)*)+|\D+', $line;

So there is no matter what chars you put between digits.

Replies are listed 'Best First'.
Re^4: Split on whitespace or other criteria
by Anonymous Monk on Jan 30, 2005 at 21:12 UTC
    the -ve sign is lost on the split?