X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fexigrep.src;h=faa5cb73b53a1bbdfd3cd75fcba9eb7003289f6d;hb=d953610fa77ec9a08fad9c1a183181079a79674e;hp=bb994d7697f35ead2e493a354677eba7aeb24c37;hpb=3386088d5af4d4c61faa12ae29560e2c5bd43304;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/exigrep.src b/src/src/exigrep.src index bb994d769..faa5cb73b 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -1,6 +1,8 @@ -#! PERL_COMMAND -w +#! PERL_COMMAND +use warnings; use strict; +BEGIN { pop @INC if $INC[-1] eq '.' }; # Copyright (c) 2007-2015 University of Cambridge. # See the file NOTICE for conditions of use and distribution. @@ -174,7 +176,7 @@ sub detect_compressor_capable { if ($filename =~ /\.(?:$ext)$/) { - # Just die if compressor not found; if this occurrs in the middle of + # Just die if compressor not found; if this occurs in the middle of # two valid files with a lot of matches, error could easily be missed. die("Didn't find $ext decompressor for $filename\n") if ($compressors->{$ext}->{bin} eq '');