Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub xmlout {
- my ($conf, $filename, $root, $decl) = @_;
- my $parser = XML::Simple->new;
- open my $fh, '+<', $filename;
- flock($fh, 2);
- $parser->XMLout($conf, Outputfile => $filename, RootName => $root, XMLDecl => $decl);
- close($fh);
- }
Add Comment
Please, Sign In to add comment