1 2 3 4 5 6 7 8 9
#!/usr/bin/env perl6 my $arrayref = [ 1 .. 9 ]; say $arrayref.[2]; say $arrayref.[3..6]; say $arrayref[2]; say $arrayref[3..6];
1234
34 5 6 734 5 6 7