I found a simple solution in my special case now by turning my array inside out!
Thats means instead of writing $arrays[$level][NAME] I will use $name[$level] in my code.
This has the special benefit that I can restrict the scope of my @name, which I can't easily do with a constant like NAME.
Cheers Rolf
In reply to Re: Named array indices (workaround)
by LanX
in thread Named array indices
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |