Scalar arrays ("arrayrefs")
No special referencing syntax needed
> my @words = < postmodern modern romantic baroque classical >; # create a reference to @words in $x > my $x = @words; > @words.push('fundamenta-List'); > say $x.elems; 6
Perl 6 | Perl 6 Lists, Arrays, and Hashes vivified | #12 |
No special referencing syntax needed
> my @words = < postmodern modern romantic baroque classical >; # create a reference to @words in $x > my $x = @words; > @words.push('fundamenta-List'); > say $x.elems; 6
Copyright © 2011 http://www.pmichaud.com/2011/pres/ |