Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2019-10-18 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?