John M. Dlugosz 提到:
What is the difference between (1,2,3) and [1,2,3] ?
One is a List and one is an Array; you cannot push into a list, but you can into an array.
my @a := (1,2,3); my @b := [1,2,3]; @a.push(4); # fails @b.push(4); # works Cheers, Audrey