Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 20205
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Best

Owner: Nobody
Requestors: MTHURN <MTHURN [...] cpan.org>
Cc: martin.thurn [...] ngc.com
AdminCc:

Severity: Normal
Broken in: 0.05
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Fri Jun 30 10:30:36 2006 MTHURN - Ticket created  
CC: martin.thurn[...]ngc.com
Subject: need 'use Carp;'
[text/plain 901b]
Perl 5.9 and newer doesn't let you 'require' or 'use' modules at runtime. Please add 'use Carp' at the top of your module in order to make it usable in the future. Thank you.

t/01-basic.......String found where operator expected at /disk1/src/PERL/.cpanplus/5.9.2/build/Best-0.05/blib/lib/Best.pm line 71, near "Carp::carp "Best: what modules shall I load?""
(Do you need to predeclare Carp::carp?)
syntax error at /disk1/src/PERL/.cpanplus/5.9.2/build/Best-0.05/blib/lib/Best.pm line 71, near "Carp::carp "Best: what modules shall I load?""
Compilation failed in require at t/01-basic.t line 11.
BEGIN failed--compilation aborted at t/01-basic.t line 11.
# Looks like your test died before it could output anything.
t/01-basic.......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay


--
- - Martin 'Kingpin' Thurn
#   Sat Jul 01 01:13:16 2006 GAAL - Correspondence added  
[text/plain 205b]
Fixed in 0.06.

The problem was that the call didn't use parens around the arguments (I
don't know why this manifested in bleadperl and not in 5.8.x). Perl very
hopefully still supports require at runtime.
#   Sat Jul 01 01:13:20 2006 RT_System - Status changed from 'new' to 'open'  
#   Sat Jul 01 01:13:21 2006 GAAL - Status changed from 'open' to 'resolved'