Thread Frage zu Perl 6 (Referenzsyntax) (10 answers)
Opened by Kuerbis at 2015-07-03 14:59

Kuerbis
 2015-07-03 14:59
#181474 #181474
User since
2011-03-20
943 Artikel
BenutzerIn
[default_avatar]
Hallo!

Sind hier beide Schreibweisen OK?

Code (perl): (dl )
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];

Code: (dl )
1
2
3
4
3
4 5 6 7
3
4 5 6 7

View full thread Frage zu Perl 6 (Referenzsyntax)