jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
Is something like this possible ?$a = { a1 => { a2 => 'Hi' } } ; $my_key = "a1\{a2\}" ; print "Hash-value is $a->{$my_key}\n" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash-value access via special constructed key
by holli (Abbot) on Mar 07, 2006 at 12:50 UTC | |
by ikegami (Patriarch) on Mar 07, 2006 at 15:22 UTC | |
by jeanluca (Deacon) on Mar 07, 2006 at 13:11 UTC | |
|
Re: hash-value access via special constructed key
by davorg (Chancellor) on Mar 07, 2006 at 12:29 UTC | |
|
Re: hash-value access via special constructed key
by jeanluca (Deacon) on Mar 07, 2006 at 12:47 UTC |