in reply to Array of arrays

I'm not sure what you intend, so I'll try PSI::ESP. On the first five iterations of the loop, there won't be anything in @AoA at index 5. There's your uninitialized value right there.

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:

while(<DATA>){ push @AoA, [split]; }
This gives you a list of five lines, with each number in a separate slot.

Replies are listed 'Best First'.
Re: Re: Array of arrays
by cajun (Chaplain) on Jan 22, 2001 at 10:10 UTC
    Thanks chromatic ! Your PSI::ESP module is working well. I'll have to download that one.
    Problem solved !