You could do something along the lines of:
$myhash = {my_key=> {sub_key=>sub_data} }
where my key is 1-4 depending on which hash it is, and then your data is easily divided in the subhash.
Without some kind of sample data it's sort of hard to get a feel for what you want, but I hope that helps.
In reply to Re: create subroutine
by Popcorn Dave
in thread create subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |