GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ouse(3) User Contributed Perl Documentation ouse(3)

ouse - syntactic sugar to make Mouse one-liners easier

  # 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'

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

"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.

You will need Filter::Simple and eventually Mouse

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

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

For all intents and purposes, blame:

Chris Prather "<perigrin@cpan.org>"

...who wrote oose.pm, which was adapted for use by Mouse by:

Ricardo SIGNES "<rjbs@cpan.org>"

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.

2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.