Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found