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

yes, should hav mention that a blank is required before -ve sign thanks
  • Comment on Re^2: Split on whitespace or other criteria

Replies are listed 'Best First'.
Re^3: Split on whitespace or other criteria
by sh1tn (Priest) on Jan 30, 2005 at 21:01 UTC
    @array = grep { $_ !~ /^\s*$/ } split '(\d+(?:\.\d*)*)+|\D+', $line;

    So there is no matter what chars you put between digits.
      the -ve sign is lost on the split?