@{} 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
In reply to Re: Does @{ } copy arrays?
by Anonymous Monk
in thread Does @{ } copy arrays?
by tford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |