aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-08-23 23:22:14 +0200
committerTeddy Wing2021-08-23 23:24:08 +0200
commit1072cc0c7e92b28abfb23f7d878b97f30be29522 (patch)
treecacb092e70db5ecc306cc1a68cca49a5e959ffa8
parentb5b0dc44953bf852e45f3cd72ac0de8d255e596c (diff)
downloadreadline-incdec-1072cc0c7e92b28abfb23f7d878b97f30be29522.tar.bz2
Turn off strict and warnings in final `perl -e` script
Those caused the following errors: Variable "$line" is not imported at -e line 45. Variable "$increment_by" is not imported at -e line 45. Variable "$point_position" is not imported at -e line 45. Variable "$backward" is not imported at -e line 45. Global symbol "$line" requires explicit package name (did you forget to declare "my $line"?) at -e line 45. Global symbol "$increment_by" requires explicit package name (did you forget to declare "my $increment_by"?) at -e line 45. Global symbol "$point_position" requires explicit package name (did you forget to declare "my $point_position"?) at -e line 45. Global symbol "$backward" requires explicit package name (did you forget to declare "my $backward"?) at -e line 45. Execution of -e aborted due to compilation errors. I suppose I could have kept warnings, as only strict caused the errors, but decided to remove it anyway. Not sure what makes the most sense.
-rw-r--r--incdec3
-rw-r--r--incdec.pl.m43
2 files changed, 0 insertions, 6 deletions
diff --git a/incdec b/incdec
index aa3f372..e898165 100644
--- a/incdec
+++ b/incdec
@@ -57,9 +57,6 @@ function __readline_incdec {
# print "$line, ${"increment-by"}, ${"point-position"}, $backward";
line=$(perl -s -e '
-use strict;
-use warnings;
-
sub incdec {
my ($line, $increment_by, $point_position, $is_backward) = @_;
diff --git a/incdec.pl.m4 b/incdec.pl.m4
index 03fb905..aacb095 100644
--- a/incdec.pl.m4
+++ b/incdec.pl.m4
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-
include(`incdec.sub.pl')dnl
my $output = incdec($line, $increment_by, $point_position, $backward);