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?