From: Célestin Matte Date: Thu, 06 Jun 2013 19:34:13 GMT Subject: [PATCH 08/18] Explicitely assign local variable as undef and make a proper one-instruction-by- line indentation Message-ID: <1370547263-13558-9-git-send-email-celestin.matte@ensimag.fr> In-Reply-To: <1370547263-13558-1-git-send-email-celestin.matte@ensimag.fr> Signed-off-by: Célestin Matte Signed-off-by: Matthieu Moy --- contrib/mw-to-git/git-remote-mediawiki.perl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl index 7fbc998..ae6dd2e 100755 --- a/contrib/mw-to-git/git-remote-mediawiki.perl +++ b/contrib/mw-to-git/git-remote-mediawiki.perl @@ -339,7 +339,10 @@ sub run_git { my $args = shift; my $encoding = (shift || "encoding(UTF-8)"); open(my $git, "-|:$encoding", "git " . $args); - my $res = do { local $/; <$git> }; + my $res = do { + local $/ = undef; + <$git> + }; close($git); return $res; -- 1.7.9.5