Skip Menu |

This queue is for tickets about the Term-ReadLine-Tiny CPAN distribution.

Report information
The Basics
Id: 121293
Status: resolved
Priority: 0/
Queue: Term-ReadLine-Tiny

People
Owner: ORKUN [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.00
  • 1.01
Fixed in: 1.03



Subject: Experimental pop on scalar is now forbidden
Module compilation fails for perls >= 5.24 (with the above error message) and perls <= 5.12 (for roughly the same reason): # Failed test 'use Term::ReadLine::Tiny;' # at t/00-load.t line 7. # Tried to use 'Term::ReadLine::Tiny'. # Error: Experimental pop on scalar is now forbidden at /home/cpansand/.cpan/build/2017042215/Term-ReadLine-Tiny-1.00-5/blib/lib/Term/ReadLine/Tiny.pm line 282, near "$history unless" # Compilation failed in require at t/00-load.t line 7. # BEGIN failed--compilation aborted at t/00-load.t line 7. # Failed test 'use Term::ReadLine::Tiny;' # at t/00-load.t line 7. # Tried to use 'Term::ReadLine::Tiny'. # Error: Type of arg 1 to pop must be array (not private variable) at /usr/home/eserte/.cpan/build/2017042215/Term-ReadLine-Tiny-1.00-1/blib/lib/Term/ReadLine/Tiny.pm line 282, near "$history unless" # Compilation failed in require at t/00-load.t line 7. # BEGIN failed--compilation aborted at t/00-load.t line 7.
Here is a patch.
Subject: open_A5BqVTyi.txt
diff -rup Term-ReadLine-Tiny-1.01-gc0TYI-orig/lib/Term/ReadLine/Tiny.pm Term-ReadLine-Tiny-1.01-gc0TYI/lib/Term/ReadLine/Tiny.pm --- Term-ReadLine-Tiny-1.01-gc0TYI-orig/lib/Term/ReadLine/Tiny.pm 2017-04-23 22:40:42.000000000 -0700 +++ Term-ReadLine-Tiny-1.01-gc0TYI/lib/Term/ReadLine/Tiny.pm 2017-05-03 17:10:47.000000000 -0700 @@ -281,7 +281,7 @@ sub readline { print $out $char; $history->[$#$history] = $line; - pop $history unless defined($minline) and length($line) >= $minline; + pop @$history unless defined($minline) and length($line) >= $minline; $result = $line; last; }
03 May 2017 Çrş, 20:12:14 tarihinde, SPROUT yazdı: Show quoted text
> Here is a patch.
https://github.com/orkunkaraduman/p5-Term-ReadLine-Tiny/commit/6b099c3a42b9d6fbb66256654e0997de244ce0c5
04 May 2017 Prş, 02:57:49 tarihinde, ORKUN yazdı: Show quoted text
> 03 May 2017 Çrş, 20:12:14 tarihinde, SPROUT yazdı:
> > Here is a patch.
> > > https://github.com/orkunkaraduman/p5-Term-ReadLine- > Tiny/commit/6b099c3a42b9d6fbb66256654e0997de244ce0c5