XML file creation in Perl

后端 未结 2 1706
说谎
说谎 2021-01-22 01:22

My input file is

TBLA      COLA      A    B    
TBLA      COLB      D    E    
TBLB      COLX      M    N     
TBLB      COLD      A    B   
TBLC      COLD          


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 01:39

    Recommend is to use XML::Simple instead of writing an selfmade XML Parser. You just need to set:

    use XML::Simple;
    my $xml = XMLout($hashref, RootName => 'Data');
    

提交回复
热议问题