It's an associative array (aka hash). It has three values, each can be
accessed by their "key" name.
%daysPerMonth = ('Jan' => 31, 'Feb' => 28, 'Mar' => 31);
print $daysPerMonth{Jan}; # prints 31
print $daysPerMonth{Feb}; # prints 28
print $daysPerMonth{Mar}; # prints 31
Rob
-----Original Message-----
From: Naveen Parmar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 11:47 AM
To: [EMAIL PROTECTED]
Subject: %
Hello,
What does % represent in the following statement?
%daysPerMonth = ('Jan' => 31, 'Feb' => 28, 'Mar' => 31);
Is %daysPerMonth an array? Do we really need an array for this?
TIA,
- NP
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.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]