Skip Menu |
 

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

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

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

Bug Information
Severity: Normal
Broken in: 0.006000
Fixed in: (no value)



Subject: Doesn't work with Devel::REPL
Devel::Declare does not work with Devel::REPL. 0 windhund ~$ re.pl $ use MooseX::Declare $ class Foo { Show quoted text
> has this => ( isa => "Num", is => "rw" ); > > method hello($place) { > print "Hello, $place!\n"; > } > }
Compile error: PL_linestr not long enough, was Devel::Declare loaded soon enough in (eval 496) at /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2/darwin-thread-multi-2level/Devel/Declare/Context/Simple.pm line 64. I've tried it with several DD based modules, all with the same error. This appears to be related to the problem with using Devel::Declare in a one liner. 0 windhund ~$ perl -wle 'use MooseX::Method::Signatures; method foo() { print "foo" }' PL_linestr not long enough, was Devel::Declare loaded soon enough in -e at /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2/darwin-thread-multi-2level/Devel/Declare/Context/Simple.pm line 64. But this works: 0 windhund ~$ perl -MMooseX::Method::Signatures -wle 'method foo() { print "foo" }' Adding "use MooseX::Method::Signatures" to repl.rc also does not help. Is there a work around?
Download (untitled) / with headers
text/plain 263b
Works on perl 5.14: % re.pl $ use TryCatch; $ try { die "foo" } catch($e) { print "caught <<<$e>>>\n" } caught <<<foo at (eval 330) line 4, <FIN> line 2. Show quoted text
>>>
Can't be fixed on earlier perls, for the same reason that it generally can't be fixed for -e. -zefram


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.