Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

How do I get a list in a perl hash generated from an XML?

by PV66 (Novice)
on Apr 19, 2021 at 08:48 UTC ( [id://11131461]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <root>
      <ref name="abc_sia_%version1.ref%">
    ...
         base="default_771"/>
      </ref>
    </root>
    
  2. or download this
    my $xml = new XML::Simple;
    my $data = $xml->XMLin("/home/pv66", ForceArray => 1, KeyAttr => { ref
    + => "name"});
    print Dumper ($data);
    
  3. or download this
    $VAR1 = {
             'ref' => 
    ...
               ]       
    }                  
    };
    
  4. or download this
    $VAR1 = {
    
    ...
               ]       
    }                  
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11131461]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found