in reply to Read File In Four-Line Chunks / TMTOWTDI / Golf
The last splice argument there should be 4 since its a length not an index.while (my ($name,$address,$phone,$fax) = splice(@slurpedarray,0,4)){ #work with named vars }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Read File In Four-Line Chunks / TMTOWTDI / Golf
by halley (Prior) on Jun 10, 2003 at 13:53 UTC | |
by Lachesis (Friar) on Jun 10, 2003 at 14:31 UTC |