I think you need to do:

my %loginhash = {};

Kim Helliwell
LSI Logic Corporation
Work: 408 433 8475
Cell: 408 832 5365
[EMAIL PROTECTED]
 
Please Note: My email address changed to [EMAIL PROTECTED] on Oct
14. The old email address ([EMAIL PROTECTED]) will stop working after
Jan 15, 2007. Please update your address book and distribution lists
accordingly. Thank you.
-----Original Message-----
From: Dukelow, Don [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 8: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();

But the "use strict" doesn't like it.  All examples of making a hash
structure is hard coded in the program or is made reading from a file.
When
I try to run the script all I get is syntax error near "%loginHash("
What am I missing?

Don Dukelow

--
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