in reply to Re: Application Deployment With Perl
in thread Application Deployment With Perl

Is it possible, for example, to do something like this:
<?xml version="1.0"?> <Config> <LOCAL_PATH>d:\pb8\</LOCAL_PATH> <ZIP_PATH>p:\</ZIP_PATH> <SYSTEMS> <Assessor>1.5.499</Assessor> <Treasurer>1.5.200</Treasurer> </SYSTEMS> </Config>
If I'm thinking of it right, I could see that I have a list of systems, and if I delve into the systems I could find various properties of them, such as version, etc.?

Thanks for the info :) Very informative :)
MrCromeDome

Replies are listed 'Best First'.
Re: Re: Re: Application Deployment With Perl
by vek (Prior) on Apr 03, 2003 at 21:29 UTC
    Yep it's entirely possible to do what you suggest. Here's the data structure that XML::Simple would create (results dumped via Data::Dumper):
    $VAR1 = { 'ZIP_PATH' => 'p:\\', 'LOCAL_PATH' => 'd:\\pb8\\', 'SYSTEMS' => { 'Treasurer' => '1.5.200', 'Assessor' => '1.5.499' } };
    And then:
    my $config = read_ini("AppDeployment.xml"); my $assessor_version = $config->{SYSTEMS}->{Assessor};
    -- vek --