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"
|
|---|
| 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 |