in reply to Re^4: Returning hash reference from a sub
in thread Returning hash reference from a sub
Hi, this won't work as you use the same keys.
Better try to make an array of hashes which would look like this:$VAR1 = { 'names' => 'mary', 'names' => 'john', 'names' => 'Doe', 'names => '' };
or$VAR1 = [ { 'names' => 'mary'}, { 'names' => 'john'}, { 'names' => 'Doe'}, { 'names => ''} ];
$VAR1 = { 'names' => ['mary','john','Doe','']}; ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Returning hash reference from a sub
by Anonymous Monk on Mar 18, 2013 at 14:29 UTC |