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; > >: > >: Then, the following line puzzles me: > >: > >: my @[EMAIL PROTECTED](WORD GAMENO)}; > >: > >: How does the order of evaluation go here in order to > >: populate @ary? > > > > Why not just print @ary and find out for yourself? > > 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.
What you have is a hash slice. It is the same as my @ary = ($state->{WORD}, $state->{GAMENO}); Run perldoc perldata to read more about them. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>