Perllace has asked for the wisdom of the Perl Monks concerning the following question:
Report will have something likeuse Report; $rep = Reporter->new(); my $id = "1"; my $value1 = "Some Process A"; $rep->getParameter($id,$value1); #will do something #will do something my $id = "2"; my $value2 = "Some Process B"; $rep->getParameter($id,$value2);
The xml fileReport.pm sub getParameter { my ($self, $id,$value) = @_; my $hash = { 'Key' => $id, 'Value' => $value }; #The idea is that I need to keep writing the values so obtained in an +xml format.. }
I need an XML module that will let me append these tags to the file, as and when the specific functions are called. Which XML module would do this.. and a small sample of how to use it please.. Thanks, Perllace<Parameter key="1">Some Process A</Parameter> <Parameter key="2">Some Process B</Parameter>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which XML module to use for this scenario?
by wind (Priest) on Apr 21, 2011 at 14:18 UTC | |
by jellisii2 (Hermit) on Apr 21, 2011 at 17:54 UTC | |
by Perllace (Acolyte) on Apr 23, 2011 at 06:57 UTC | |
by wind (Priest) on Apr 23, 2011 at 07:42 UTC | |
by Perllace (Acolyte) on Apr 23, 2011 at 13:27 UTC | |
by wind (Priest) on Apr 23, 2011 at 15:49 UTC |