X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Fsynopsis-extractor;h=21980b4d9d86e778593d1446ca2f5c27af6f34b2;hb=dac431fabb4a29cd9ea0b86c4331815cffcfb99d;hp=57e7437abad1fa3efc8a12f3f93ba812892b8308;hpb=adb30a8ac700a4a4f26dafaaef0806c05fd8768a;p=catagits%2FHTML-Zoom.git 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 {