Your variable is called '@arrays', but you print '$array[0]' etc. -- which is a different variable. Try:
print $arrays[0];
This is an example of where coding with use strict would have helped you.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re: How do I create and pass an array of arrays to other modules
by xdg
in thread How do I create and pass an array of arrays to other modules
by gerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |