Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I though the syntax would be something like this:my $array_of_key_value_pairs = [ item1 => $foo$, item2 => $bar$, item1 => $foo2, ]
this doesn't seem to work...any thoughtsmy $data; ... push @$data, "$key => $value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array of key value pairs?
by chromatic (Archbishop) on Mar 18, 2008 at 19:27 UTC | |
by Anonymous Monk on Mar 18, 2008 at 19:38 UTC | |
|
Re: array of key value pairs?
by FunkyMonk (Bishop) on Mar 18, 2008 at 21:38 UTC | |
|
Re: array of key value pairs?
by dragonchild (Archbishop) on Mar 19, 2008 at 01:57 UTC |