in reply to Array of arrays
Additionally, your split doesn't make a lot of sense. If you want to split on whitespace, you can avoid any regex at all. Otherwise, if you want an array slice, the syntax would be @tmp = (split)[0 .. 7];
Here's how I would do things:
This gives you a list of five lines, with each number in a separate slot.while(<DATA>){ push @AoA, [split]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array of arrays
by cajun (Chaplain) on Jan 22, 2001 at 10:10 UTC |