in reply to can i concatenate various value to form a unique key
It's a little known feature that Perl actually supports autoconcatenation of strings used as hash keys, joining them together using $;, which by default contains "\034" which is rare enough that it's unlikely unwanted duplicates are formed. So, you can write:
without having to join them yourself.my @value = @{$Config{$value1,$value2,$value3,$value4,$value5}};
This was how people did multilevel hashes using perl4.
For more details, see the perlvar entry about $;.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can i concatenate various value to form a unique key
by Anonymous Monk on Jul 03, 2009 at 10:38 UTC |