Just write it like:

my %loginHash = ();

This should work.

-----Original Message-----
>From: "Dukelow, Don" <[EMAIL PROTECTED]>
>Sent: Dec 13, 2006 12:23 AM
>To: beginners@perl.org
>Subject: declaring a zero size hash
>
>I'm trying to declare a zero size hash so a sub function can populate it and
>be see by all other sub's.
>
>my %loginHash();
>


--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to