> -----Original Message-----
> From: Dean Theophilou [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 3:03 PM
> To: Perl_beginner (E-mail)
> Subject: RE: The => in Hashes
> 
> 
> Well, suppose we had this:
> 
> %Day = (
>       "Sun" => "Sunday",
>       "Mon" => "Monday",
> );
> 
> Wouldn't these keys be legal identifier names?  And if so, 
> then why quote them?

Yep, they are legal identifier names, so they don't have to be quoted.
It is still valid syntax to quote them, just not *required*. Generally,
I prefer not to quote things like this, as it enhances readability. 
But others may not agree, and prefer to quote them.

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

Reply via email to