스마트 패키지없이 xml 파일에 XML 출력을 저장하려고하지만 할 수 없습니다.xml :: smart 패키지없이 xml 출력을 파일에 저장하는 방법
use warnings;
use strict;
use XML::Simple;
my $xml;
my @hash = qw('test' '60.0' 'test1' '103' 'test2' '20' 'test3' '108');
my %hash1 [email protected];
my $hash2 = \%hash1;
my $xs = new XML::Simple;
$xml = $xs->XMLout($hash2 ,
NoAttr => 1,
RootName=>'newPhone',
);
print $xml;
$xml->save('newfile.xml') ;
"스마트"가 실제로 "단순"해야합니까? 같은 파일 핸들이 코드에 사용하면 버그를 추적하는 하드로 이어질 수 bareword는 파일 핸들,시 – toolic