Skip Menu |

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

Maintainer(s)' notes

When you report a bug, please provide the following information;

- output of
	perl -V
	perl Makefile.PL verbose
	make test TEST_VERBOSE=1
	perl -Mblib t/00checkver.t
	echo $TERM
- terminal emulator which you are using
- compiler which is used to compile the GNU Readline Library (libreadline.a) if you can know.
Read INSTALL in the distribution for more details.

Report information
The Basics
Id: 82665
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Term-ReadLine-Gnu

People
Owner: HAYASHI [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.20
Fixed in: 1.21



Subject: defined(@array) is deprecated
warnings on new perl: t/callback.t .... defined(@array) is deprecated at t/callback.t line 17. (Maybe you should just omit the defined()?) t/readline.t .... defined(@array) is deprecated at t/readline.t line 21. (Maybe you should just omit the defined()?) -- Alexandr Ciornii, http://chorny.net
The warning is caused by the following line. my $verbose = defined @ARGV && ($ARGV[0] eq 'verbose'); "defined @ARGV &&" was added to suppress a warning. Which version of perl you are using? Is it a stable version? The change should cause errors on many existing codes.
On Sun Jan 13 04:43:36 2013, HAYASHI wrote: Show quoted text
> The warning is caused by the following line. > my $verbose = defined @ARGV && ($ARGV[0] eq 'verbose'); > > "defined @ARGV &&" was added to suppress a warning.
This line can be replaced with my $verbose = @ARGV && ($ARGV[0] eq 'verbose'); Show quoted text
> Which version of perl you are using?
5.16.2 Show quoted text
> Is it a stable version?
Yes. This warning appeared in perl 5.14.0. -- Alexandr Ciornii, http://chorny.net
Show quoted text
> This line can be replaced with > my $verbose = @ARGV && ($ARGV[0] eq 'verbose');
... Show quoted text
> > Is it a stable version?
> Yes. This warning appeared in perl 5.14.0.
I see. I'll fix it on the next release. But I don't want make a release only for warings on test programs. It will be after the next GNU Readline Library release. Regards,
Fixed in 1.21.