But I haven't tested it, so YMMV.my $HoH = {}; foreach my $array (@AoA) { $HoH->{ $array->[0] }->{ $array[1] }->{ $array->[2] } = 1; }
--starX
www.axisoftime.com
In reply to Re: How to transform a matrix into a hash??
by starX
in thread How to transform a matrix into a hash??
by yocoim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |