On Tuesday 14 August 2001 10:36, John Sands wrote:
> Is there a simple way to know whether a hash has items in it? Like using
> @ARRAY in a scalar context gives the size of an array. Or using $#ARRAY
> gives the last valid index.

Calling keys() on the hash will return a list of the keys in the hash.  
Calling scalar() on that list will give you the number of elements in the 
list.

Regards,

Troy


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to