in reply to Array interpolation in Rakudo
say "array: @array"; # interpolates nothing say "array: @array[]"; # interpolate all elements say "array: @array[1]"; # interpolate one element say "array: @array.sort"; # no interpolation, does not # end with something brackety say "array: @array.sort()"; # interpolates sorted array
Rakudo implements those cases according to the specification.
See also: strings, arrays, hashes, S02: Literals (scroll down)
|
|---|