Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Coerce array into hash problem

by thezip (Vicar)
on Oct 03, 2008 at 16:05 UTC ( #715220=note: print w/replies, xml ) Need Help??

in reply to Coerce array into hash problem

This is happening because you're not dereferencing an array.

Maybe something like:

use strict; use warnings; use Data::Dumper; # This will give you a clearer idea of what you data actually looks li +ke print Dumper($AoH); # This assumes that $data is an index (integer) my $year = $AoH->[$data]{'YEAR'};

If this doesn't work for you, post the contents of the Data::Dumper output, and we'll talk some more.

What can be asserted without proof can be dismissed without proof. - Christopher Hitchens

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715220]
[Your Mother]: Packed with minority women.
[LanX]: pitty they burned the actors in Stargate
LanX ... uhm ... wait...
[Eily]: LanX I don't see the woman
[LanX]: at the right, tanned , gib boobs, chains
[LanX]: big
[Your Mother]: That show, in hindsight, is terribly ominous... playing apologist and glorifier for Vietnam vets. Attempting to neuter violence as a valid tool where no one ever really gets hurt...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-03-19 14:46 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.