Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Error: when joining two hashes

by Laurent_R (Canon)
on Feb 19, 2020 at 16:31 UTC ( #11113163=note: print w/replies, xml ) Need Help??


in reply to Re^2: Error: when joining two hashes
in thread Error: when joining two hashes

I agree with Fletch that it seems a bit odd that your two variables don't have the same data structure. $VAR1 is a hash ref (or more precisely a reference to a hash of hashes), but $VAR2 is an array ref (a reference to an array of hashes of hashes), but there is no obvious reason in the data that you show to have an array as the top data structure. Is this data structure generated by your program at some earlier point? The proper fix would probably be to correct the part of the program that generates $VAR2, but you don't show that part.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2021-10-22 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?