my @arr = (1, 2, 3, 4, 5); @arr.elems == 5 or die "Wrong length"; @arr = Empty; @arr.elems == 0 or die "Wrong length";