Gregory Bair wrote:
> Can a hash be the value of an array element?

No, but a reference to a hash can.

> What comes to mind is  something like
> $array[1]{hashkey} = hashvalue, though this seems silly to 
> me.

Let me guess: you didn't try it. That's how I'd do it, anyway.

   ${$array[1]}{hashkey}

and

   $array[1]->{hashkey}

both work fine, but so does

   $array[1]{hashkey}

(you can leave out -> between ] [, ] {, } [, } { brackets)

Cheers,
Philip

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to