in reply to Accessing an array of anonymous hashes
i think you'll have to use the keys function:
keep in mind keys will return a list, so:print Dumper( keys %{ $transaction_record_fields_method1->[2] } ); print Dumper( values %{ $transaction_record_fields_method1->[2] } );
my ($name) = keys %{ $transaction_record_fields_method1->[2] }; my $range = $transaction_record_fields_method1->[2]->{$name};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Accessing an array of anonymous hashes
by thezip (Vicar) on Mar 26, 2007 at 17:17 UTC | |
by mreece (Friar) on Mar 26, 2007 at 18:02 UTC | |
by thezip (Vicar) on Mar 26, 2007 at 18:14 UTC | |
by eric256 (Parson) on Mar 26, 2007 at 18:41 UTC |
In Section
Seekers of Perl Wisdom