logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

oo - syntactic sugar for Moo oneliners

Authors

See Moo for authors.

Description

oo.pm is a simple source filter that adds "package $name; use Moo;" to the beginning of your script, intended for use on the command line via the -M option.

Name

oo - syntactic sugar for Moo oneliners

Support

See Moo for support and contact information.

Synopsis

perl -Moo=Foo -e 'has bar => ( is => q[ro], default => q[baz] ); print Foo->new->bar' # loads an existing class and re-"opens" the package definition perl -Moo=+My::Class -e 'print __PACKAGE__->new->bar'

See Also