in reply to Re: Using 'keys' on a list
in thread Using 'keys' on a list
Thanks for the response =).
keys doesn't operate on a listDo you know why this might be? Maybe because strictly speaking, only hashes have keys, and lists don't? But then perl isn't usually that strict e.g. as you mentioned from 5.12 keys can operate on an array. I ask because I was hoping to be able to do this in one line. It's not a big deal but I'm kind of curious to see if it's possible.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Using 'keys' on a list
by choroba (Cardinal) on Jun 29, 2021 at 15:13 UTC | |
by lammey (Novice) on Jun 29, 2021 at 17:02 UTC | |
by LanX (Saint) on Jun 29, 2021 at 19:29 UTC | |
by Anonymous Monk on Jun 29, 2021 at 22:09 UTC |
In Section
Seekers of Perl Wisdom