in reply to Defining an anonymous hash with slices and lists.
my $number = 2; my $word = ${my %x; @x{qw(1 2 3)} = qw(one two three); \%x}{$number};
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Defining an anonymous hash with slices and lists.
by Anonymous Monk on Aug 27, 2003 at 22:04 UTC | |
by merlyn (Sage) on Aug 27, 2003 at 22:14 UTC | |
|
Re: •Re: Defining an anonymous hash with slices and lists.
by davido (Cardinal) on Aug 28, 2003 at 16:41 UTC |