in reply to Application Deployment With Perl
Then in your read_ini subroutine, parse the XML:<?xml version="1.0"?> <Config> <Assessor>1.5.499</Assessor> <LOCAL_PATH>d:\pb8\</LOCAL_PATH> <SYSTEMS>Assessor,Treasurer</SYSTEMS> <Treasurer>1.5.200</Treasurer> <ZIP_PATH>p:\</ZIP_PATH> </Config>
You'll have to take into account the fact that read_ini will now be returning a hash reference instead of a plain hash:sub read_ini { my $config_file = shift; my $parser = XML::Simple->new; my $results = $parser->XMLin($config_file); # $results is a hash reference return $results; }
And then...my $config = read_ini("AppDeployment.xml");
Hope that helped.my $apps = $config->{SYSTEMS};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Application Deployment With Perl
by MrCromeDome (Deacon) on Apr 03, 2003 at 19:52 UTC | |
by vek (Prior) on Apr 03, 2003 at 21:29 UTC | |
|
Re: Re: Application Deployment With Perl
by buttroast (Scribe) on Apr 12, 2003 at 02:10 UTC | |
by vek (Prior) on Apr 12, 2003 at 19:16 UTC |