> I assume that the character ! will never appear in the name of any person or fruit.
Actually you are reinventing the wheel here.
Perl has a built-in mechanism for multidimensional keys.
see $; aka $SUBSCRIPT_SEPARATOR in perlvar
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: Perl parse text file using hash
by LanX
in thread Perl parse text file using hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |