perl - added current directory path to calls
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Mon, 10 Oct 2016 10:55:01 +0000 (12:55 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Mon, 10 Oct 2016 10:55:01 +0000 (12:55 +0200)
The perl INC path in debian does not include the current directory
anymore. Therefore I added the current directory path at the places
where a module is called and it is assumed that . is part of INC.

See: https://lwn.net/Articles/698853/

perl-module/Makefile.PL
tests/data/data-in.at

index a315abbee2241363bd5c270e5af54297445e7d64..7efaa57beabdf616bcea30f49f8ad1b182fe837e 100644 (file)
@@ -4,7 +4,7 @@ use ExtUtils::MakeMaker;
 # the contents of the Makefile that is written.
 
 
-do 'pspp-module-config' || do {
+do './pspp-module-config' || do {
     my $build = prompt ("Enter the location of the build directory of the configured pspp source:", "" );
     my $src = $top_srcdir;
 
index cfe965c5146aa6b9e1fdf18ec336b726716ffa40..0c3a1837911fb5149808216f6dfe7233a83583d4 100644 (file)
@@ -25,7 +25,7 @@ EOF
 #! /usr/bin/perl
 use strict;
 use warnings;
-do 'my-rand.pl';
+do './my-rand.pl';
 my_rand (1) foreach 1...10000;
 our $seed;
 die $seed if $seed != 1043618065;
@@ -39,7 +39,7 @@ date_in () {
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 my ($fmt_name, @templates) = @ARGV;
 
@@ -198,7 +198,7 @@ time_in () {
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 my ($skip, $fmt_name, @templates) = @ARGV;
 
@@ -287,7 +287,7 @@ use POSIX;
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 for my $number (0, 1, .5, .015625, 123) {
     my ($base_exp) = floor ($number ? log10 ($number) : 0);