$p{"Bryan"}{"age"} = 31
- From: Bryan_R_Harris@xxxxxxxxxxxx (Bryan R Harris)
- Date: Tue, 31 May 2005 09:06:15 -0700
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
.
- Prev by Date: Best WML editor for Perl?
- Next by Date: Best WML editor for Perl?
- Previous by thread: simple open file
- Next by thread: RE: $p{"Bryan"}{"age"} = 31
- Index(es):