Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Assignment of hash to hash doesn't work?

by rnewsham (Chaplain)
on May 13, 2014 at 11:39 UTC ( #1085887=note: print w/ replies, xml ) Need Help??


in reply to Assignment of hash to hash doesn't work?

Are you using strict and warnings? I suspect that you may not be as you should be getting an error similar to below

Global symbol "%site" requires explicit package name at foo.pl line 10 +1. Execution of foo.pl aborted due to compilation errors.

Your array contains references to hashes so you need to dereference them to get at the contents.

$site->{'Age'}

Alternatively so you can use $site{'Age'}; you can do this.

my %site = %{$recordset_TA_SITE[0]};


Comment on Re: Assignment of hash to hash doesn't work?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085887]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-07-07 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls