Scalar arrays ("arrayrefs")
Arrays in Perl 6 are objects
Objects can be held in scalar variables
> my $words = [ < orange lime cherry banana lemon > ]; > say $words.WHAT Array()
Perl 6 | Perl 6 Lists and Arrays vivified | #11 |
Arrays in Perl 6 are objects
Objects can be held in scalar variables
> my $words = [ < orange lime cherry banana lemon > ]; > say $words.WHAT Array()
Copyright © 2012 http://www.pmichaud.com/2012/pres/ |