Skip to content
Snippets Groups Projects
Commit 21f1a47d authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

added utility function "save"

parent 4c2d3886
Branches
No related tags found
No related merge requests found
......@@ -80,6 +80,23 @@ print __LINE__, " xmlref: ", main::Dumper ($xmlref) if ($DEBUG > 0);
return ($xmlref, $xml);
}
sub save
{
my $fnm= shift;
my $xml= shift;
unless (open (XML, '>:utf8', $fnm))
{
print "ATTN: can't write to fnm=[$fnm]";
return undef;
}
print "saving xml to $fnm\n";
print XML $xml;
close (XML);
1;
}
1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment