#!/usr/bin/perl use XML::Simple; my @authors; while (<>) { /^(.*?):(.*)$/ and push @authors, { uid => $1, content => $2 }; } print XMLout({ author => \@authors }, RootName => "authors");
#!/usr/bin/perl use XML::Simple; my @authors; while (<>) { /^(.*?):(.*)$/ and push @authors, { uid => $1, content => $2 }; } print XMLout({ author => \@authors }, RootName => "authors");