From 826190fb4bcf8dd37ff99bcda075bcd086cc8847 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Oct 2012 16:30:38 +0000 Subject: (commit) do not reinvent output() --- common/Varspaceval.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/Varspaceval.pm') 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; -- cgit v1.2.1