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]
- how many items in a hash? John Sands
- RE: how many items in a hash? Troy Denkinger
- RE: how many items in a hash? Bob Showalter
- Re: how many items in a hash? Michael Fowler
- Re: how many items in a hash? Troy Denkinger
- RE: how many items in a hash? Bob Showalter
- Re: how many items in a hash? John Sands
- Re: how many items in a hash? Michael Fowler
- Re: how many items in a hash? Piers Cawley
- Re: how many items in a hash? John Sands
- RE: how many items in a hash? Wagner-David