Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Hash key composition with a comma?

by pwagyi (Scribe)
on Mar 17, 2018 at 08:00 UTC ( #1211111=note: print w/replies, xml ) Need Help??

in reply to Hash key composition with a comma?

It is mostly used in legacy code as answered before.

If you are familiar with awk, it is the *way* to emulate multi-dimensional hash in awk/ and perl without reference

I admit I've used a bit in some places where the use is well hidden and localized. You should prefer proper multi-dimensional hash (if it's really what you need). imagine to get keys of hash{foo} in emulated hash version, it'd be very difficult to do so.

# with proper multi-dimensional hash keys(%{$hash{foo}}); # get keys of hash{foo}

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2019-10-20 08:34 GMT
Find Nodes?
    Voting Booth?