diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-18 15:25:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-18 15:25:21 +0000 |
commit | 85d7b983dc65a9a4328ee0136222f085a999cdc9 (patch) | |
tree | cce22bc7ccc31a4322f82012010b76cabbe1d7fc | |
parent | 3585ee8bdb3afe7c601b4f6135ee5a17be0c6178 (diff) | |
download | drakwizard-85d7b983dc65a9a4328ee0136222f085a999cdc9.tar drakwizard-85d7b983dc65a9a4328ee0136222f085a999cdc9.tar.gz drakwizard-85d7b983dc65a9a4328ee0136222f085a999cdc9.tar.bz2 drakwizard-85d7b983dc65a9a4328ee0136222f085a999cdc9.tar.xz drakwizard-85d7b983dc65a9a4328ee0136222f085a999cdc9.zip |
(commit) simplify getting/deleting hash value
-rw-r--r-- | common/Varspaceval.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/Varspaceval.pm b/common/Varspaceval.pm index 2ce97f4c..3295426c 100644 --- a/common/Varspaceval.pm +++ b/common/Varspaceval.pm @@ -55,8 +55,7 @@ sub commit { } next if !exists $hash->{$key}; #Elt has been removed no warnings; - $val = $hash->{$key}; - delete $hash->{$key}; + $val = delete $hash->{$key}; my $out_val = $pre . $key . $eq . $val . $rest; $output .= defined $val ? $out_val . "\n" : $out_val; } |