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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 270
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20566-1315854661-77.68574-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 460
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.