in reply to converting an array to an hash

In recent Perls, you can use the new slice syntax to convert an array to a hash:
use Syntax::Construct qw{ %slice }; use Data::Dumper; my @l = qw( the quick brown fox ); my %h = %l[0 .. $#l]; print Dumper \%h; __END__ $VAR1 = { '2' => 'brown', '1' => 'quick', '3' => 'fox', '0' => 'the' };
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ