scalar @array gives you the number of elements in an array. if( @array ){ will also only be true if the array contains at least one element.
In reply to Re^3: Use of uninitialized value in tie array
by Corion
in thread Use of uninitialized value in tie array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |