On Jul 16, David Arnold said:
>my @[EMAIL PROTECTED](WORD GAMENO)};
>
>How does the order of evaluation go here in order to populate @ary?
That is a hash slice on the hash reference in $state.
The @{...} is signaling we expect to get more than one value back, and the
{qw(WORD GAMENO)} is a hash
On Fri, Jul 16, 2004 at 08:08:48PM -0700, David Arnold wrote:
> At 09:52 PM 7/16/04 -0500, Charles K. Clarkson wrote:
> >David Arnold <[EMAIL PROTECTED]> wrote:
> >
> >: If I have:
> >:
> >: my $state={};
> >: $state->{WORD}='affection';
> >: $state->{GAMENO}=3;
> >: $state->{GUESSES}=3;
> >:
>
Charles et al,
Certainly good advice, and I did print it out, so I do know what happens.
%perl junk.pl
affection3
Compilation finished at Fri Jul 16 20:02:43
It's just that I don't know why this happens.
At 09:52 PM 7/16/04 -0500, Charles K. Clarkson wrote:
>David Arnold <[EMAIL PROTECTED]> wr
David Arnold <[EMAIL PROTECTED]> wrote:
: If I have:
:
: my $state={};
: $state->{WORD}='affection';
: $state->{GAMENO}=3;
: $state->{GUESSES}=3;
:
: Then, the following line puzzles me:
:
: my @[EMAIL PROTECTED](WORD GAMENO)};
:
: How does the order of evaluation go here in order to
: populat