Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

oo

Name oo
Version
Located at /usr/local/share/perl5
File /usr/local/share/perl5/oo.pm
Is Core No
Search CPAN for this module oo
Documentation oo
Module Details oo

NAME

oo - syntactic sugar for Moo oneliners


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'


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.


SUPPORT

See Moo for support and contact information.


AUTHORS

See Moo for authors.


COPYRIGHT AND LICENSE

See Moo for the copyright and license.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024