1oo(3)                 User Contributed Perl Documentation                oo(3)
2
3
4

NAME

6       oo - syntactic sugar for Moo oneliners
7

SYNOPSIS

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

DESCRIPTION

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

SUPPORT

20       See Moo for support and contact information.
21

AUTHORS

23       See Moo for authors.
24
26       See Moo for the copyright and license.
27
28
29
30perl v5.36.0                      2023-01-20                             oo(3)
Impressum