Skip to content

Instantly share code, notes, and snippets.

@leto
Created June 7, 2009 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leto/125387 to your computer and use it in GitHub Desktop.
Save leto/125387 to your computer and use it in GitHub Desktop.
use MooseX::Declare;
use feature 'say';
class App::HelloMooseXDeclare with MooseX::Getopt with MooseX::Runnable {
method run {
my ($name) = @_;
say "Hello, $name.";
return 0; # success
}
};
(kadath)(~/git/moosey)$ mx-run -Ilib App::HelloMooseXDeclare DukeLeto
Not inlining 'new' for MooseX::Meta::TypeCoercion::Structured since it is not inheriting the default Moose::Object::new
If you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to MooseX::Meta::TypeCoercion::Structured->meta->make_immutable
Odd number of elements in hash assignment at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Method/Signatures/Meta/Method.pm line 335.
Validation failed for 'MooseX::Types::Structured::Tuple[MooseX::Types::Structured::Tuple[Object],MooseX::Types::Structured::Dict[]]' failed with value [ [ App::HelloMooseXDeclare=HASH(0xb890a0) ], { DukeLeto => undef } ], Internal Validation Error is: Validation failed for 'MooseX::Types::Structured::Dict[]' failed with value { DukeLeto => undef } at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Method/Signatures/Meta/Method.pm line 365
MooseX::Method::Signatures::Meta::Method::validate('MooseX::Method::Signatures::Meta::Method=HASH(0x8124e0)', 'ARRAY(0x812f20)') called at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Method/Signatures/Meta/Method.pm line 139
App::HelloMooseXDeclare::run('App::HelloMooseXDeclare=HASH(0xb890a0)', 'DukeLeto') called at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Runnable/Invocation.pm line 145
MooseX::Runnable::Invocation::start_application('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0xa24320)', 'App::HelloMooseXDeclare=HASH(0xb890a0)', 'DukeLeto') called at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Runnable/Invocation.pm line 156
MooseX::Runnable::Invocation::run('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0xa24320)', 'DukeLeto') called at /opt/local/bin/mx-run line 28
main::run() called at /opt/local/bin/mx-run line 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment