Value of tag1 :1 Value of tag2 :caSystemId Value of tag1 :2 Value of tag2 :gaSystemId
The exact code for the curious:
#! /usr/bin/perl use warnings; use strict; my $xml = { cmts => { STBDSG => { dsg => [ { tag1 => 1, tag2 => 'caSystemId', }, { tag1 => 2, tag2 => 'gaSystemId', } ] }}}; my $dsg_tags = $xml->{cmts}{STBDSG}{dsg}; for my $dsg (@$dsg_tags) { print "Value of tag1:", $dsg->{tag1}, "\n"; print "Value of tag2:", $dsg->{tag2}, "\n"; }
In reply to Re: Problem in reading parsed xml using XML::Simple
by choroba
in thread Problem in reading parsed xml using XML::Simple
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |