in reply to Re^2: Parse data from a line to get 2 variables
in thread Parse data from a line to get 2 variables
He actually gave you the answer, more or less:
Devnul
instead of:my ($lot,$prod) = m/(\S+)\s+(\S+)/;
I'm not sure what you are doing with the if(m%E%), but I presume that is for testing...$Info=$_; $lotNumber=substr($Info, 0,8); $productName=substr($Info, 9);
Devnul
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Parse data from a line to get 2 variables
by Sunnmann (Acolyte) on May 13, 2006 at 01:10 UTC | |
by Anonymous Monk on May 13, 2006 at 01:41 UTC |
In Section
Seekers of Perl Wisdom