diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-05-30 13:52:54 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-05-30 13:52:54 -0500 |
commit | 31ae07b262666c3ab36eeb581a599e7c549ea9a0 (patch) | |
tree | afeb92fcc0afde8ea7bcc03d7bc8063d719a328c /sboconfig | |
parent | 18837e7ff419f34327606e8d2bc0ceaf1989aea0 (diff) | |
download | sbotools2-31ae07b262666c3ab36eeb581a599e7c549ea9a0.tar.xz |
remove unneeded parens in 'close ()' bits
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -96,7 +96,7 @@ sub config_write { my ($fh, $filename) = make_temp_file (); open my $reader, '<', $conf_file; print {$fh} <$reader>; - close ($fh); + close $fh; # tie the file so that if $key is already there, we just change that # line and untie it tie my @temp, 'Tie::File', $filename; @@ -114,14 +114,14 @@ sub config_write { if ($has eq 'FALSE') { open (my $writer, '>>', $filename); print {$writer} "$key=$val\n"; - close ($writer); + close $writer; } move ($filename, $conf_file); } else { # no config file, easiest case of all. open my $writer, '>', $conf_file; print {$writer} "$key=$val\n"; - close ($writer); + close $writer; } } |