C:\test>\perl5.18\bin\perl -E"my %h=1..10; my $r = \%h; print %{ $r }[ 1,2 ];" syntax error at -e line 1, near "}[" Execution of -e aborted due to compilation errors. C:\test>\perl5.18\bin\perl -E"my @a=1..10; my $r = \@a; print %{ $r }[ 1,2 ];" syntax error at -e line 1, near "}[" Execution of -e aborted due to compilation errors.