- or download this
<?xml version="1.0" encoding="UTF-8" ?>
<charge-type-control>
...
<charge code="SV4" name="savamt"/>
<charge code="SV5" name="savamt"/>
</charge-type-control>
- or download this
{
'SV1' => 'savamt',
...
'SV3' => 'savamt',
'SV4' => 'savamt'
};
- or download this
{
'charge' => {
...
}
}
};
- or download this
$ref = XMLin('charge-type-control.xml', KeyAttr => ['code']);
- or download this
$ref = XMLin('charge-type-control.xml', KeyAttr => ['code'], ValueAttr
+ => ['name']);
- or download this
my %myref;
for my $key (keys %{$ref->{charge}}) {
$myref{$key} = $ref->{charge}->{$key}->{name};
}