summaryrefslogtreecommitdiff
path: root/tests/mod-setenv.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mod-setenv.t')
-rwxr-xr-xtests/mod-setenv.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/mod-setenv.t b/tests/mod-setenv.t
index a5c2b7e..1e56301 100755
--- a/tests/mod-setenv.t
+++ b/tests/mod-setenv.t
@@ -1,10 +1,9 @@
#!/usr/bin/env perl
-
BEGIN {
- # add current source dir to the include-path
- # we need this for make distcheck
- (my $srcdir = $0) =~ s#/[^/]+$#/#;
- unshift @INC, $srcdir;
+ # add current source dir to the include-path
+ # we need this for make distcheck
+ (my $srcdir = $0) =~ s,/[^/]+$,/,;
+ unshift @INC, $srcdir;
}
use strict;