Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: can i concatenate various value to form a unique key

by SuicideJunkie (Vicar)
on Jul 03, 2009 at 14:01 UTC ( [id://777055]=note: print w/replies, xml ) Need Help??


in reply to can i concatenate various value to form a unique key

Ensuring uniqueness is quite easy, but you definitely don't want to concatenate. It sounds like you want a HoHoHoHoHoA.
See: perlref and use Data::Dumper to make it easy to see the deep structure of your variable via print Dumper \%hash.

For a config type example:
my %config; my $inDir = $config{directories}{input}; my $tempDir = $config{directories}{temp}; my $outDir = $config{directories}{output}; my $bgColor = $config{colors}{background}; ...

Log In?
Username:
Password:

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

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

    No recent polls found