Do I get a simple bonus if I turn your code into a one liner :)
my $h = pop @array; $h = {$_ => $h} for reverse @array;
In reply to Re^2: transform array into a data structure
by calin
in thread transform array into a data structure
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |