nejcPirc has asked for the wisdom of the Perl Monks concerning the following question:
$i=1; foreach $line(@file) { chomp $line; ($numb."[$i]",$text."[$i]")=split(/\|\|/,$line);#problem?? $i++; }
So this is my code and it must be something wrong with split line, concatenation....for($j=0; $j<$i; $j++) { print $numb."[$i]||".$text."[$i]"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting scalars out from txt file
by Roger (Parson) on Oct 15, 2004 at 12:00 UTC | |
|
Re: getting scalars out from txt file
by ccn (Vicar) on Oct 15, 2004 at 10:47 UTC | |
|
Re: getting scalars out from txt file
by nejcPirc (Acolyte) on Oct 15, 2004 at 10:44 UTC | |
by Jasper (Chaplain) on Oct 15, 2004 at 11:12 UTC | |
|
Re: getting scalars out from txt file
by ikegami (Patriarch) on Oct 15, 2004 at 15:21 UTC |