Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: "PAR'ing" XML configs?

by guice (Scribe)
on Aug 08, 2005 at 16:13 UTC ( #481925=note: print w/replies, xml ) Need Help??

in reply to Re^2: "PAR'ing" XML configs?
in thread "PAR'ing" XML configs?

That's it. Thanks!

Everything is extraced under the $ENV{PAR_TEMP}/inc/. I was able to successfully create a test script using the following:

<opt date="test> <test>This is a test</test> <company id="test" /> </opt>
#!/usr/bin/perl use strict; use XML::Simple; use Data::Dumper; my $xml = new XML::Simple; my $ret = $xml->($ENV{'PAR_TEMP'} . "/inc/test.xml"); print Dumper($ret);
Compiled with: pp -o test.exe -a test.xml

Moved the PAR package to another directory and ran it. It ran successfully.

I guess for testing, one can check to see if PAR_TEMP is set. If it's not, assume a command line run else assume PAR run, since the PATH to your file will definatly be different based on a PAR or command line run.

-- philip
We put the 'K' in kwality!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481925]
[Corion]: Yeah, I'm thinking more of marketing mailing lists, not public broadcast-style mailing lists
[marto]: yeah, so our hackerspace, we run mailman. that's a public discussion list, not a weekly buy our crap marketing list, people can unsubscribe at any time. What they can't do is delete their mails from the archive, or from the inboxes of our hundreds of user

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2018-05-22 08:20 GMT
Find Nodes?
    Voting Booth?