in reply to three dimensional arrays

read perllol, and then what perllol tells you to read(SEE ALSO perldata(1), perlref(1), perldsc(1)).

Now for the advice, yes, you can use push.