diff options
| author | Teddy Wing | 2021-08-23 23:22:14 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-23 23:24:08 +0200 |
| commit | 1072cc0c7e92b28abfb23f7d878b97f30be29522 (patch) | |
| tree | cacb092e70db5ecc306cc1a68cca49a5e959ffa8 /incdec | |
| parent | b5b0dc44953bf852e45f3cd72ac0de8d255e596c (diff) | |
| download | readline-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.
Diffstat (limited to 'incdec')
| -rw-r--r-- | incdec | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) = @_; |
