ouse(3pm)
πΈ NAME πΈ β ouse(3pm), User Contributed Perl Documentation π
okay so ouse is literally syntactic sugar to make Mouse one-liners easier, and this is the User Contributed Perl Documentation page for it. thatβs the whole vibe. πβ¨
β¨ SYNOPSIS β¨
bestie, hereβs the group-chat demo. first, create a Mouse class on the fly:
# create a Mouse class on the fly ...
perl -Mouse=Foo -e 'has bar => ( is=>q[ro], default => q[baz] ); print Foo->new->bar' # prints baz
# loads an existing class (Mouse or non-Mouse)
# and re-"opens" the package definition to make
# debugging/introspection easier
perl -Mouse=+My::Class -e 'print join ", " => __PACKAGE__->meta->get_method_list'
slay. thatβs the energy. π
π DESCRIPTION π
okay so ouse.pm is a simple source filter. what it does is add this exact line to the beginning of your script:
package $name; use Mouse;
and it was entirely created because typing this:
perl "-e'package Foo; use Mouse; ...'"
was annoying me... especially after getting used to having -Moose for Moose. periodt. ππ
π«Ά INTERFACE π«Ά
ouse provides exactly one method and it is automatically called by perl:
oose->import()β pass a package name to import to be used by the source filter.
ngl the raw manpage has a lil rogue > after the method name, like "oose->import()">, which is giving typo energy π β the method itself is still oose->import().
π§ DEPENDENCIES π§
you will need Filter::Simple and eventually Mouse. thatβs the tea. π
β οΈ INCOMPATIBILITIES β οΈ
none reported. but the way that it is a source filter β yeah, it might have issues there. so keep that in mind, bestie. π
π₯ SEE ALSO π₯
ooseβ forperl -Moose -e '...'
π AUTHOR π
for all intents and purposes, blame:
- Chris Prather
<perigrin@cpan.org>β who wroteoose.pm, which was adapted for use by Mouse by: - Ricardo SIGNES
<rjbs@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright 2008 Shawn M Moore.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay thatβs the page, bestie π footer vibes: perl v5.42.2, dated 2026-04-21, and itβs the ouse(3pm) page. mwah ππ¦
π¦ where this page comes from
- alpine 3.24: perl-mouse-doc 2.6.2-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms