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

NAME

6       ouse - syntactic sugar to make Mouse one-liners easier
7

SYNOPSIS

9         # create a Mouse class on the fly ...
10         perl -Mouse=Foo -e 'has bar => ( is=>q[ro], default => q[baz] ); print Foo->new->bar' # prints baz
11
12         # loads an existing class (Mouse or non-Mouse)
13         # and re-"opens" the package definition to make
14         # debugging/introspection easier
15         perl -Mouse=+My::Class -e 'print join ", " => __PACKAGE__->meta->get_method_list'
16

DESCRIPTION

18       ouse.pm is a simple source filter that adds "package $name; use Mouse;"
19       to the beginning of your script and was entirely created because typing
20       perl "-e'package Foo; use Mouse; ...'" was annoying me... especially
21       after getting used to having "-Moose" for Moose.
22

INTERFACE

24       "ouse" provides exactly one method and it is automatically called by
25       perl:
26
27       "oose->import()">
28           Pass a package name to import to be used by the source filter.
29

DEPENDENCIES

31       You will need Filter::Simple and eventually Mouse
32

INCOMPATIBILITIES

34       None reported. But it is a source filter and might have issues there.
35

SEE ALSO

37       oose for "perl -Moose -e '...'"
38

AUTHOR

40       For all intents and purposes, blame:
41
42       Chris Prather  "<perigrin@cpan.org>"
43
44       ...who wrote oose.pm, which was adapted for use by Mouse by:
45
46       Ricardo SIGNES "<rjbs@cpan.org>"
47
49       Copyright 2008 Shawn M Moore.
50
51       This program is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53
54
55
56perl v5.28.0                      2018-08-14                           ouse(3)
Impressum