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.
[reply]
Re^3: Parse data from a line to get 2 variables
by
davidrw
(Prior)
on May 13, 2006 at 12:10 UTC
or use the special
split ' ', $line;
behavior of
split
[reply]
[d/l]
In Section
Seekers of Perl Wisdom