Is there anything wrong with out of the blue making a statement like this:

$p{"Bryan"}{"age"} = 31;

I thought perl required me to use the anonymous hash composer:

$p{"Bryan"} = { "age" => 31 };

... but the first example seems to work.  So I was just wondering if that's
okay, or if it's a no-no.

(I'm learning PHP now, and there seem to be a lot of no-nos in PHP that
aren't intuitive.)

- B



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to