In article <C0FD5BECE2F0C84EAA97D7300A500D50046DD0AD@SMILEY>,
[EMAIL PROTECTED] (Timothy Johnson) writes:
>
>As far as I know, the #1 reason why people declare data structures
>explicitly is to avoid "uninitialized" messages while using warnings.
For scalars, sure, although the only time I really find that valid is
in a case like
my $whatzit = '';
for (@fuzzbar) { $whatzit .= friggle($_) }
It has nothing to do with hashes, which is the subject of the question.
>-----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
--
Peter Scott
http://www.perldebugged.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]