in reply to Re: hashref to arrayref
in thread hashref to arrayref
If I do the following I get a hash reference followed by the key value.$errors{$key}{'date'} $errors{$key}{'time'}
If I do this,my $array_ref = [%errors]
then I get only the keys, as you'd expect. Is there a way to generate the array to contain each element or will I have to resort to a looping construct? Thanks again!my $array_ref = [keys %errors]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hashref to arrayref
by ssandv (Hermit) on Jul 31, 2009 at 16:09 UTC | |
by mcarthey (Novice) on Jul 31, 2009 at 17:46 UTC |