rootcho has asked for the wisdom of the Perl Monks concerning the following question:
hi,
What I want to do is to store a LoL-path (HoH,AoA,HoA..) and then use it to access the real thing.
Let me give you one example (pseudo code):
If you didnt understood my question fully, tell me I will try to 'invent' ;) more examples
What I want to do is to store a LoL-path (HoH,AoA,HoA..) and then use it to access the real thing.
Let me give you one example (pseudo code):
and then depending on the type I want to access different element of the LoL. i.e. again pseudo code%map = ( typeA => {key1}[3]{key2}, typeB => {key3}, typeC => [1]{key4}, )
do u have some idea how can i do something like this.$lol->{$map{typeA}} <==> $lol->{key1}[3]{key2} $lol->{$map{typeB}} <==> $lol->{key3} $lol->{$map{typeB}} <==> $lol->[1]{key4}
If you didnt understood my question fully, tell me I will try to 'invent' ;) more examples
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: storing and using LoL path
by blazar (Canon) on May 25, 2007 at 19:07 UTC | |
Re: storing and using LoL path
by GrandFather (Saint) on May 25, 2007 at 20:56 UTC | |
Re: storing and using LoL path
by almut (Canon) on May 25, 2007 at 21:07 UTC | |
by rootcho (Pilgrim) on May 25, 2007 at 23:51 UTC | |
by almut (Canon) on May 26, 2007 at 02:03 UTC | |
Re: storing and using LoL path
by naikonta (Curate) on May 25, 2007 at 19:01 UTC | |
Re: storing and using LoL path
by kyle (Abbot) on May 25, 2007 at 19:15 UTC | |
by blazar (Canon) on May 28, 2007 at 19:58 UTC | |
Re: storing and using LoL path
by ikegami (Patriarch) on May 28, 2007 at 18:05 UTC |
Back to
Seekers of Perl Wisdom