As far as I know, the #1 reason why people declare data structures
explicitly is to avoid "uninitialized" messages while using warnings.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:peter@;psdt.com]
Sent: Thursday, November 07, 2002 5:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Declaring a Hash


In article
<[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Colin Johnstone) writes:
>Here is how you declare hash.
>
>my %hash = ();

The "= ()" is entirely redundant.  Just "my %hash" does exactly the same
thing.

-- 
Peter Scott
http://www.perldebugged.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to