The question is - why?I needed this once, too. Dynamically building data structures, usually if the data (here the array) comes from outside the program.
I also once maintained a script which used the eval approach. The script was twice as fast after I replaced it with my code.
In reply to Re^2: Array to nested hash
by tinita
in thread Array to nested hash
by amw1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |