in reply to Parse data from a line to get 2 variables

You could also try :

@labels = split /\t/, $_;

Which splits a string into an array,
breaking on the tab character, '\t'.

Hopefully.

  • Comment on Re: Parse data from a line to get 2 variables

Replies are listed 'Best First'.
Re^2: Parse data from a line to get 2 variables
by Anonymous Monk on May 13, 2006 at 02:03 UTC
    May be better to use \s+ than \t,
    this will match one or more whitespace
    chars rather than just the one tab.
      or use the special split ' ', $line; behavior of split