in reply to Does @{ } copy arrays?

@{} in scalar context returns the number of elements in the array. Neither the array or its elements are copied.

if (@{...}) { print("Not empty\n"); } else { print("Empty\n"); }

- ikegami