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

Re^5: Using 'keys' on a list

by Marshall (Canon)
on Jul 08, 2021 at 17:56 UTC ( #11134807=note: print w/replies, xml ) Need Help??

in reply to Re^4: Using 'keys' on a list
in thread Using 'keys' on a list

Yes, although standard Perl idioms can do that without a named sub (i.e., get just the unique hash key names). I could envision an OO object that returns just the keys of a hash via a method call that represents the "persistent data" related to that object. In a non-OO program, the normal thing would be to return a reference to the created hash (i.e. the values are significant and needed for further processing). I don't see any disagreement here.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-08-07 16:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found