Operations on arrays
We still have the functional forms:
> my @words = < postmodern modern romantic baroque classical >;
Display the number of elements
> say elems @words 5
I generally prefer the method call form:
> say @words.elems 5
We still have the functional forms:
> my @words = < postmodern modern romantic baroque classical >;
Display the number of elements
> say elems @words 5
I generally prefer the method call form:
> say @words.elems 5
Copyright © 2011 http://www.pmichaud.com/2011/pres/ |