in reply to Re^2: importing all the values stored in an HoH into an array
in thread importing all the values stored in an HoH into an array
use strict; use warnings; my %dets = ( name => q{fred}, age => 33); while (my ($key, $value) = each %dets) { # Do something with key and value here }
Note that you can't predict the order in which these functions will present keys, values or key/value pairs.
I hope this is of use.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: importing all the values stored in an HoH into an array
by chinamox (Scribe) on Oct 31, 2006 at 14:02 UTC |