Skip Menu |
 

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 68574
Status: resolved
Priority: 0/
Queue: Devel-Declare

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

Bug Information
Severity: (no value)
Broken in: 0.006003
Fixed in: (no value)



Subject: PL_linestr not long enough, was Devel::Declare loaded soon enough
Download (untitled) / with headers
text/plain 270b
The following sample fails with the error msg in the subject line for both 5.12.3 and 5.14.0 for me: #!perl eval "use Moose; use MooseX::Declare; class FooBar { }"; die $@ if $@; print "hi"; __END__ Adding "use Devel::Declare;" at the top doesn't make any difference.
Download (untitled) / with headers
text/plain 460b
Fixed as much as it can be in Devel-Declare 0.006007, just uploaded to CPAN. It's not possible for it to work when Devel::Declare is first loaded inside the string eval, which is what the error message is really suggesting. However, with 0.006007, loading Devel::Declare earlier, outside the eval (strictly, before the eval expresion is compiled), now works. Previously you had to not only load Devel::Declare but also use it to set up a keyword somewhere.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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