You'd do well to use strict;use warnings. Adding those pragmas I uncover the following issues in your code:
This of course was not your problem here, but are obviously bugs you hadn't found yet.
In reply to Re: pushing onto array is not working as intended..
by kennethk
in thread pushing onto array is not working as intended..
by spstansbury
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |