in reply to Re^4: Net::Twitter - fatal , but no error?
in thread Net::Twitter - fatal , but no error?
It's claiming that roles don't support array references for around method modifiers... i.e. Moose stuff. It's saying that this doesn't work...
use v5.14; package Local::Role { use Moose::Role; around [qw/ a b /] => sub { say "constant access" }; } package Local::Class { use Moose; with 'Local::Role'; use constant { a => 1, b => 2 }; } # Should print "constant access" twice Local::Class->a; Local::Class->b;
On my machine, the above does work though, so it's likely that you're running a very old Moose/Class::MOP. Judging from Moose::Manual::Delta this may have been introduced in Moose 0.95; current version is 2.0604.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Net::Twitter - fatal , but no error?
by ultranerds (Hermit) on Feb 08, 2013 at 15:02 UTC | |
by ultranerds (Hermit) on Feb 08, 2013 at 16:16 UTC | |
by tobyink (Canon) on Feb 08, 2013 at 16:40 UTC | |
by ultranerds (Hermit) on Feb 08, 2013 at 16:48 UTC |
In Section
Seekers of Perl Wisdom