From: John Napiorkowski Date: Mon, 27 Sep 2010 17:44:59 +0000 (-0400) Subject: revert this shit X-Git-Tag: release_0.009004~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=dac431fabb4a29cd9ea0b86c4331815cffcfb99d revert this shit --- diff --git a/maint/synopsis-extractor b/maint/synopsis-extractor index 57e7437..21980b4 100755 --- a/maint/synopsis-extractor +++ b/maint/synopsis-extractor @@ -8,13 +8,7 @@ use File::Find; use File::Spec; sub slurp_file { - undef $/; - open(my $fh, '<', shift) || return; - if(my $whole_file = <$fh>) { - return $whole_file; - } else { - return; - } + local (@ARGV, $/) = ($_[0]); <> } sub extract_synopsis {