Help for this page

Select Code to Download


  1. 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>
    
  2. or download this
    {
       'SV1' => 'savamt',
    ...
       'SV3' => 'savamt',
       'SV4' => 'savamt'
    };
    
  3. or download this
    {
        'charge' => {
    ...
                           }
                  }
    };
    
  4. or download this
    $ref = XMLin('charge-type-control.xml', KeyAttr => ['code']);
    
  5. or download this
    $ref = XMLin('charge-type-control.xml', KeyAttr => ['code'], ValueAttr
    + => ['name']);
    
  6. or download this
    my %myref;
    for my $key (keys %{$ref->{charge}}) {
       $myref{$key} = $ref->{charge}->{$key}->{name};
    }