use Moose;
extends 'TEST::Role';
has 'name' => (
is => 'ro',
isa => 'Str',
default => 'me',
);
This works in perl 5.8.5 but not in 5.8.8.
How to resolve it?
String found where operator expected at B.PM line 4, near "extends 'TEST::Role'"
(Do you need to predeclare extends?)
If you can get this into a failing test and post it to either the Moose mailing list, or #moose on irc.perl.org I'm sure someone can help sort out what is going on.
Please be sure to include all of the code, your package declaration is missing here (and as a first hint, I wouldn't name my package B because that collides with a core package).
That will happen if there is no function named extends. Perhaps you have a broken or old Moose install? Perhaps the line before use Moose; is missing a semi-colon?
By the way, your file name should be .pm, not .PM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With