in reply to Array of Arrays

As ever, Data::Dumper comes in very handy here in examining stuctures of this type....
use Data::Dumper; print Dumper($arrays);
...would show you that you're dealing with an array of arrays.

Cheers, Ben.