oose - syntactic sugar to make Moose one-liners easier
# create a Moose class on the fly ... perl -Moose=Foo -e 'has bar => ( is=>q[ro], default => q[baz] ); print Foo->new->bar' # prints baz # loads an existing class (Moose or non-Moose) # and re-"opens" the package definition to make # debugging/introspection easier perl -Moose=+My::Class -e 'print join ", " => __PACKAGE__->meta->get_method_list'
oose.pm is a simple source filter that adds package $name; use Moose; to the beginning of your script and was entirely created because typing perl -e'package Foo; use Moose; ...' was annoying me.
package $name; use Moose;
perl -e'package Foo; use Moose; ...'
oose provides exactly one method and it's automatically called by perl:
Pass a package name to import to be used by the source filter.
You will need Filter::Simple and eventually Moose
None reported. But it is a source filter and might have issues there.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Chris Prather <perigrin@cpan.org>
<perigrin@cpan.org>
Copyright 2007-2009 by Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moose
CPAN shell
perl -MCPAN -e shell install Moose
For more information on module installation, please visit the detailed CPAN module installation guide.