Help for this page

Select Code to Download


  1. or download this
    use warnings;
    #use strict;
    use XML::Simple;
    ...
    my $data = $xml->XMLin("data1.xml");
    
    print Dumper($data);
    
  2. or download this
    <?xml version='1.0'?>
    <employees>
        <employee>
    ...
            <department>Accounts</department>
        </employee>
    </employees>
    
  3. or download this
    $data = {
              'employee' => [
    ...
                              }
                            ]
            };
    
  4. or download this
    $VAR1 = {
              'employee' => {
    ...
                                        }
                          }
            };