Perl 6 screencast - part 3 - arrays and ranges
This article is about Perl 6. If you are looking for solution regarding the current production version of Perl 5, please check out the Perl tutorial.
Direct link to the Perl 6 arrays and ranges screencast
See more Perl 6 entries.
Perl 6 Code examples
use v6;
my @people =
use v6;
my @people =
use v6;
my @people =
use v6;
my @names =
use v6; for 1 .. 10 -> $n { say $n; }
use v6; for 1,3 ... Inf -> $n { say $n; last if $n > 10; }