- or download this
#!/usr/bin/perl
use warnings;
...
print $s,"\n";
my $parsed = XMLin($s);
print Dumper($parsed);
- or download this
<foo><color>red</color><color>white</color><color>blue</color></foo>
$VAR1 = {
...
'blue'
]
};
- or download this
print $_,"\n" for ( @{$parsed->{color}} )