我使用下面的腳本: #!/usr/local/bin/perl -wT
use strict;
use warnings;
print "Content-type: text/html\n\n";
print "xml reader";
# use module
use XML::Simple;
use Data::Dumper;
#print Dumper (XML::S
我其實問過this question in a different form之前。我確實得到了一個很好的答案,但我認爲我需要更多的澄清,所以我再次以整個形式提問。 用戶將腳本是這樣的: $ABC->Command(100, 100);
my $group = "1";
my $id = "1";
my $value1 = "Some Process A Happened";
$rep->
我想運行一個Perl腳本,得到一個XML文檔中的所有元素到一個數組。代碼如下: #!/usr/bin/perl
# Script to illustrate how to parse a simple XML file
# and dump its contents in a Perl hash record.
use strict;
use XML::Simple;
my $xs