how to get the number of keys in an hash
From: Liang (leo2002chen_at_hotmail.com)
Date: 08/25/04
- Next message: nobull_at_mail.com: "Re: Tricky AUTOLOAD behavior"
- Previous message: Steve Bennett: "need help reading/writing binary"
- Next in thread: Jürgen Exner: "Re: how to get the number of keys in an hash"
- Reply: Jürgen Exner: "Re: how to get the number of keys in an hash"
- Reply: Jeff Dunn: "Re: how to get the number of keys in an hash"
- Reply: nobull_at_mail.com: "Re: how to get the number of keys in an hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 25 Aug 2004 11:42:21 +0800
Hi,
I need to get the number of keys in an hash. Is there any convenient way to
get it?
or use the following one?
foreach $v (keys %hash){
$count++;
}
Thanks in advance,
Liang
- Next message: nobull_at_mail.com: "Re: Tricky AUTOLOAD behavior"
- Previous message: Steve Bennett: "need help reading/writing binary"
- Next in thread: Jürgen Exner: "Re: how to get the number of keys in an hash"
- Reply: Jürgen Exner: "Re: how to get the number of keys in an hash"
- Reply: Jeff Dunn: "Re: how to get the number of keys in an hash"
- Reply: nobull_at_mail.com: "Re: how to get the number of keys in an hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]