[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 1.24.4-72-g90998d0



The following commit has been merged in the master branch:
commit 90998d062adebb659309cca91e8de9b0e867ec3f
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Sat Aug 30 01:19:45 2008 +0200

    Util::slurp_entire_file: simplify $/ handling

diff --git a/lib/Util.pm b/lib/Util.pm
index 225b59d..be3b50f 100644
--- a/lib/Util.pm
+++ b/lib/Util.pm
@@ -172,10 +172,8 @@ sub slurp_entire_file {
     my $file = shift;
     open(C, '<', $file)
 	or fail("cannot open file $file for reading: $!");
-    my $save = $/;
-    undef $/;
+    local $/;
     local $_ = <C>;
-    $/ = $save;
     close(C);
     return $_;
 }

-- 
Debian package checker


Reply to: