Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Error: when joining two hashes

by haukex (Archbishop)
on Feb 19, 2020 at 15:43 UTC ( [id://11113159]=note: print w/replies, xml ) Need Help??


in reply to Re^3: 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.

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.

Replies are listed 'Best First'.
Re^5: Error: when joining two hashes
by Fletch (Bishop) on Feb 19, 2020 at 15:50 UTC

    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-18 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found