in reply to XML::Simple and variable interpolation
You almost have it, look at the Dumper output closer, there is another level to your HoHs.
print $config->{'profile'}{$desired_config}{database_type};
HTH
P.S. Your first test should have worked. I cut and pasted it and it worked for me:
print $config->{profile}->{$desired_config}->{database_type}; print "\nTest1\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::Simple and variable interpolation
by amonotod (Acolyte) on Oct 17, 2003 at 17:56 UTC | |
by pzbagel (Chaplain) on Oct 17, 2003 at 18:11 UTC | |
by amonotod (Acolyte) on Oct 17, 2003 at 19:17 UTC |