demo.pl untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
show
2.0
BEGIN
2.0
CRAP 2.0
1 use Perl6::Variables;
2  
3 sub show {
4 print @_[0], @_[1..$#_], "\n";
5 }
6  
7 my %hash = (a=>1, b=>2, z=>26);
8  
9 my @array = (0..10);
10  
11 my $arrayref = \@array;
12 my $hashref = \%hash;
13  
14 show %hash;
15 show @array;
16 show $hashref;
17 show $arrayref;
18  
19 show %hash{a};
20 show %hash{a=>'b'};
21 show %hash{'a','z'};
22 show %hash{qw(a z)};
23  
24 show @array[1];
25 show @array[1..3];
26 show @array[@array];
27  
28 show $hashref{a};
29 show $hashref{a=>'b'};
30 show $hashref{'a','z'};
31 show $hashref.{qw(a z)};
32  
33 show $arrayref[1];
34 show $arrayref[1..3];
35 show $arrayref.[@array];