oo(3pm)

oo3pm

Syntactic sugar for moo oneliners

Usage

  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'

Overview

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.

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13
  6. Arch

Authors

See Moo for authors.

From perl-moo 2.005005-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.