in reply to Re: Re: variable interpolation while dereferencing
in thread variable interpolation while dereferencing

As hint:

my $path = 'A/B/C'; my $hr = { 'A' => {'B'=>{'C'=>'Hello'}}}; my @path = split m</>,$path; my $ref = $hr; while(@path){ $ref = $ref->{ shift @path } } print "$ref\n"
--
http://fruiture.de

Replies are listed 'Best First'.
Re: Re: Re: Re: variable interpolation while dereferencing
by arc_of_descent (Hermit) on Oct 27, 2002 at 12:18 UTC

    thanx!
    I've spent my whole sunday morning and afternoon
    trying to get it to work!


    --
    arc_of_descent