It looks like you might be trying to construct a table, possibly in HTML. I would suggest looking into the CPAN modules for that purpose. They will dictate your data structure, at least to an extent.
Otherwise, what do you want the output to look like?
In reply to Re^3: Can't use string as an ARRAY ref
by GotToBTru
in thread Can't use string as an ARRAY ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |