Created
July 29, 2013 12:23
-
-
Save ian-kent/6103961 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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