Skip Menu |

This queue is for tickets about the Scalar-List-Utils CPAN distribution.

Report information
The Basics
Id: 31041
Status: resolved
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 1.19



Subject: qr // fails on 5.4
Disclaimer: I don't really use 5.4, only wanted to run cpantesting on it. Will try to install older versions. t/first.............Unquoted string "qr" may clash with future reserved word at t/first.t line 65. syntax error at t/first.t line 65, near "/^" String found where operator expected at t/first.t line 109, near "Can't "goto"" Bareword found where operator expected at t/first.t line 109, near ""goto" out" (Missing operator before out?) Unquoted string "block" may clash with future reserved word at t/first.t line 109. Unquoted string "qr" may clash with future reserved word at t/first.t line 113. syntax error at t/first.t line 113, near "/^" Bareword found where operator expected at t/first.t line 113, near "goto subroutine from" (Do you need to predeclare goto?) Search pattern not terminated at t/first.t line 113. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) t/isvstring.........dubious Test returned status 0 (wstat 11, 0xb) t/lln...............ok t/maxstr............ok t/max...............ok t/minstr............ok t/min...............ok t/openhan...........ok t/p_blessed.........ok t/p_first...........Unquoted string "qr" may clash with future reserved word at t/first.t line 65. String found where operator expected at t/first.t line 109, near "Can't "goto"" Bareword found where operator expected at t/first.t line 109, near ""goto" out" (Missing operator before out?) Unquoted string "block" may clash with future reserved word at t/first.t line 109. Unquoted string "qr" may clash with future reserved word at t/first.t line 113. Bareword found where operator expected at t/first.t line 113, near "goto subroutine from" (Do you need to predeclare goto?) FAILED before any test output arrived t/p_lln.............ok t/p_maxstr..........ok t/p_max.............ok t/p_minstr..........ok t/p_min.............ok t/p_openhan.........ok t/p_readonly........ok t/p_reduce..........Unquoted string "qr" may clash with future reserved word at t/reduce.t line 92. String found where operator expected at t/reduce.t line 136, near "Can't "goto"" Bareword found where operator expected at t/reduce.t line 136, near ""goto" out" (Missing operator before out?) Unquoted string "block" may clash with future reserved word at t/reduce.t line 136. Unquoted string "qr" may clash with future reserved word at t/reduce.t line 140. Bareword found where operator expected at t/reduce.t line 140, near "goto subroutine from" (Do you need to predeclare goto?) FAILED before any test output arrived t/p_refaddr.........ok t/p_reftype.........ok t/proto.............ok t/p_shuffle.........ok t/p_sum.............ok t/p_tainted.........ok t/readonly..........ok t/reduce............Unquoted string "qr" may clash with future reserved word at t/reduce.t line 92. syntax error at t/reduce.t line 92, near "/^" String found where operator expected at t/reduce.t line 136, near "Can't "goto"" Bareword found where operator expected at t/reduce.t line 136, near ""goto" out" (Missing operator before out?) Unquoted string "block" may clash with future reserved word at t/reduce.t line 136. Unquoted string "qr" may clash with future reserved word at t/reduce.t line 140. syntax error at t/reduce.t line 140, near "/^" Bareword found where operator expected at t/reduce.t line 140, near "goto subroutine from" (Do you need to predeclare goto?) Search pattern not terminated at t/reduce.t line 140. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #31041] qr // fails on 5.4
Date: Thu, 29 Nov 2007 06:20:09 -0600
To: bug-Scalar-List-Utils [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
On Nov 28, 2007, at 2:21 PM, Alexandr Ciornii via RT wrote: Show quoted text
> Disclaimer: I don't really use 5.4, only wanted to run cpantesting on > it. Will try to install older versions. > > t/first.............Unquoted string "qr" may clash with future > reserved > word at t/first.t line 65.
Well I guess it does not support 5.004 anymore. Given that support for 5.005 is being dropped from ExtUtils::MakeMaker I do not see that as much of a problem. Graham.
Attached is a patch which removes the few qr's from the tests so it can run on 5.4 again. That'll get the tests running again. Otherwise, if 5.4 support is being dropped, please change the requires() in Makefile.PL to 5.005.
--- Scalar-List-Utils-1.19/t/first.t 2008-09-09 16:40:43.000000000 -0700 +++ Scalar-List-Utils-1.19.new/t/first.t 2008-09-09 16:46:02.000000000 -0700 @@ -62,7 +62,7 @@ # Can we undefine a first sub while it's running? sub self_immolate {undef &self_immolate; 1} eval { $v = first \&self_immolate, 1,2; }; -like($@, qr/^Can't undef active subroutine/, "undef active sub"); +like($@, "/^Can't undef active subroutine/", "undef active sub"); # Redefining an active sub should not fail, but whether the # redefinition takes effect immediately depends on whether we're @@ -106,10 +106,10 @@ # Can we goto a label from the 'first' sub? eval {()=first{goto foo} 1,2; foo: 1}; - like($@, qr/^Can't "goto" out of a pseudo block/, "goto label"); + like($@, q[/^Can't "goto" out of a pseudo block/], "goto label"); # Can we goto a subroutine? eval {()=first{goto sub{}} 1,2;}; - like($@, qr/^Can't goto subroutine from a sort sub/, "goto sub"); + like($@, "/^Can't goto subroutine from a sort sub/", "goto sub"); } } --- Scalar-List-Utils-1.19/t/reduce.t 2006-12-10 08:03:45.000000000 -0800 +++ Scalar-List-Utils-1.19.new/t/reduce.t 2008-09-09 16:46:38.000000000 -0700 @@ -89,7 +89,7 @@ # Can we undefine a reduce sub while it's running? sub self_immolate {undef &self_immolate; 1} eval { $v = reduce \&self_immolate, 1,2; }; -like($@, qr/^Can't undef active subroutine/, "undef active sub"); +like($@, q[/^Can't undef active subroutine/], "undef active sub"); # Redefining an active sub should not fail, but whether the # redefinition takes effect immediately depends on whether we're @@ -133,10 +133,10 @@ # Can we goto a label from the reduction sub? eval {()=reduce{goto foo} 1,2; foo: 1}; - like($@, qr/^Can't "goto" out of a pseudo block/, "goto label"); + like($@, q[/^Can't "goto" out of a pseudo block/], "goto label"); # Can we goto a subroutine? eval {()=reduce{goto sub{}} 1,2;}; - like($@, qr/^Can't goto subroutine from a sort sub/, "goto sub"); + like($@, q[/^Can't goto subroutine from a sort sub/], "goto sub"); } }
5.4 is no longer supported