Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Hash key composition with a comma?

by pwagyi (Monk)
on Mar 17, 2018 at 08:00 UTC ( [id://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}