summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/Varspaceval.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/Varspaceval.pm b/common/Varspaceval.pm
index e934ada2..0da4393c 100644
--- a/common/Varspaceval.pm
+++ b/common/Varspaceval.pm
@@ -11,6 +11,7 @@ package MDK::Wizard::Varspaceval;
#use lib('./');
use strict;
use Data::Dumper;
+use MDK::Common;
# Get all useful content of the config file
# Return a hash containg the key and the value
@@ -78,9 +79,7 @@ sub commit {
#print "\n------------------\n";
# outputing the new conf
- open(F, "> $file") or return;
- print F $output;
- close(F);
+ output($file, $output);
}
1;