Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: printing one output from multiple scripts.

by chromatic (Archbishop)
on Jun 18, 2012 at 22:58 UTC ( #976924=note: print w/ replies, xml ) Need Help??


in reply to printing one output from multiple scripts.

Pick a new root tag for the combined XML file and print its start and end around the two existing outputs, which become unique sections under the new root tag.

For bonus points, refactor the resulting code to reduce duplication.


Improve your skills with Modern Perl: the free book.


Comment on Re: printing one output from multiple scripts.
Re^2: printing one output from multiple scripts.
by mipatel (Novice) on Jun 19, 2012 at 15:07 UTC
    hello, i am kind of new to perl. would it be possible if you can provide a quick example or a syntax that can be useD?

      Which parts are giving you trouble? It's a handful of lines of code and it uses nothing not already in your existing code. If you wrote that, you're more than capable of writing this.

      Give it a try. Play with what you have. If you get confused, show what you've done, and we can help you figure out what's going wrong.


      Improve your skills with Modern Perl: the free book.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-12-19 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls