in reply to getting scalars out from txt file

I did it like this:
$i=1; foreach $line(@file) { chomp $line; ($numb,$text)=split(/\|\|/,$line); $numb[$i]=$numb; $text[$i]=$text; $i++; }
Well, it's working...

Replies are listed 'Best First'.
Re^2: getting scalars out from txt file
by Jasper (Chaplain) on Oct 15, 2004 at 11:12 UTC
    What's wrong with:
    ($numb[$i], $text[$i]) = ... Seems like $numb and $text are superfluous.