in reply to Converting string into index MD array

Data::Diver

or

my @indexes = ( 2, 3, 4, 5 ); my $p = \\@MDarray; $p = \($$p->[$_]) for @indexes; $$p = ...;

Tested.

Replies are listed 'Best First'.
Re^2: Converting string into index MD array
by dsheroh (Monsignor) on Jul 17, 2007 at 17:19 UTC
    Nice... Very compact and avoids having to treat the final index differently than the others, which was one thing I really didn't like about my version.