Answered thesemy self, but in case it helps any one else
>
> Folks,
>
> I am using XML::Simple to let me parse a config file. I
> include copies of
> the code and the XML file in question.
>
> My question is how to get at the Project name values, in a
> list or as the
> keys to a hash.
>
> I have tried perldoc perlref, which has not helped me.
>
> Can anyone:
>
> a) show me how to get this working
use strict;
use warnings;
use XML::Simple;
use Data::Dumper;
my $config = XMLin();
print Dumper($config);
my %ProjList = %{$config->{Project}};
foreach my $key (keys %ProjList) {
print $key,"\n";
print %{$ProjList{$key}}->{'Rmk'};
print "\n";
}
my $ConveroRmk = $config->{Project}->{EP1002}->{Rmk};
print $ConveroRmk;
> b) point me to a "Janet & John" type explanation of references
>
perldoc perlreftut
Next time, like the FAQ says I will RTFM first
Rod
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]