{
    "mode": "perldoc",
    "parameter": "oo",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/oo/json",
    "generated": "2026-06-16T10:25:08Z",
    "synopsis": "perl -Moo=Foo -e 'has bar => ( is => q[ro], default => q[baz] ); print Foo->new->bar'\n# loads an existing class and re-\"opens\" the package definition\nperl -Moo=+My::Class -e 'print PACKAGE->new->bar'",
    "sections": {
        "NAME": {
            "content": "oo - syntactic sugar for Moo oneliners\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "perl -Moo=Foo -e 'has bar => ( is => q[ro], default => q[baz] ); print Foo->new->bar'\n\n# loads an existing class and re-\"opens\" the package definition\nperl -Moo=+My::Class -e 'print PACKAGE->new->bar'\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "oo.pm is a simple source filter that adds \"package $name; use Moo;\" to the beginning of your\nscript, intended for use on the command line via the -M option.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "See Moo for support and contact information.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "See Moo for authors.\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "See Moo for the copyright and license.\n",
            "subsections": []
        }
    },
    "summary": "oo - syntactic sugar for Moo oneliners",
    "flags": [],
    "examples": [],
    "see_also": []
}