http://qs1969.pair.com?node_id=479625

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone,

I have a doubt in using XML in perl. I am trying to put an output of a perl script to an xml file. The idea being that the xml file can be opened in the MS excel spread sheet.

This is the print statement of the perl script.

foreach $app(keys %appsrvr) { print "\n$app"; foreach $attribute(keys %{ $appsrvr{$app} }) { print " $appsrvr{$app}{$attribute}"; } } print "\n";
How do I put the above print stmt in an xml format file so that I can open the xml file in an excel spread sheet.

CODE tags added by Arunbear