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

You can't call keys on an array so that's not going to do anything useful. There's a slight whiff of an XY problem in that your data in the two variables isn't of the same shape (HoH vs AoHoH); it might help if you step back a notch and figure out why your previous step(s) aren't making the same outputs.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^4: Error: when joining two hashes
by haukex (Archbishop) on Feb 19, 2020 at 15:43 UTC
    You can't call keys on an array so that's not going to do anything useful.

    As of 5.12 (2010), keys @array returns the indicies of the array.

    $ perl -wMstrict -le 'my @x=qw/a b c d/; print for keys @x' 0 1 2 3

    But yeah, in this context it's not useful.

      Derp! I stand corrected there (and should have read my own link first); it's just the difference in shapes and depths of the values means it's not going to do anything useful.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Re^4: Error: when joining two hashes
by Sami_R (Sexton) on Feb 20, 2020 at 12:37 UTC

    Thank you Fletch for the direction.