Skip to content

Instantly share code, notes, and snippets.

@ian-kent
Created July 29, 2013 12:23
Show Gist options
  • Save ian-kent/6103961 to your computer and use it in GitHub Desktop.
Save ian-kent/6103961 to your computer and use it in GitHub Desktop.
String found where operator expected at test.pl line 14, near "dosomething 'test'"
(Do you need to predeclare dosomething?)
syntax error at test.pl line 14, near "dosomething 'test'"
Execution of test.pl aborted due to compilation errors.
package MooseRole;
use Moose::Role;
sub dosomething {
print "test";
}
package MooseClass;
use Moose;
with 'MooseRole';
has 'something' => ( is => 'rw' );
dosomething 'test' => ( a => 1, b => 2 );
__PACKAGE__->meta->make_immutable;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment