In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (George S Pereira) wrote:
> I need to find out the number of elements in the hash.
>
> Is there any quick way, like $#array for arrays.
the keys() function, in scalar context, returns the number
of pairs in the hash.
http://www.perldoc.com/perl5.6.1/pod/func/keys.html
--
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]