Seems that you want to fill @subsetA and @subsetB based on the filenames contained in @fullarray.
I would propose the following apporach
In reply to Re: arrays help
by Ratazong
in thread arrays help
by PerlBeginNew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |