-
-
28 Mar 2020 13:17:36 UTC
- Distribution: Mouse
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (12)
- Testers
- Kwalitee
Bus factor: 6- License: perl_5
- Perl: v5.8.5
- Activity
24 month- Tools
- Download (215.18KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 45 contributors- Shawn M Moore <sartak at gmail.com>
-
Aleksandr Matveev
-
Alex Solovey
-
Bernhard M. Wiedemann
-
Boutros Lab User
-
Brett
-
Chris Prather
-
Daisuke Maki (lestrrat)
-
Daisuke Maki
-
Dann
-
David Steinbrunner
-
Eiichi Tsukata
-
FUJI Goro (gfx)
-
Fuji, Goro
-
Ingy dot Net
-
Jesse Vincent
-
Joel Bernstein
-
John SJ Anderson
-
Kensaku Araga
-
Kent Fredric
-
Luca Ferrari
-
Masahiro Honma
-
Matt S Trout
-
Michael G. Schwern
-
NAKAGAWA Masaki
-
Nick Woolley
-
Piotr Roszatycki
-
Reini Urban
-
Ricardo SIGNES
-
Sergey Kolychev
-
Sergiy Zuban
-
Shawn M Moore
-
Stanislaw Pusep
-
Syohei YOSHIDA
-
Todd Rinaldo
-
Tokuhiro Matsuno
-
Tomas Doran (t0m)
-
Vincent Pit
-
Yuval Kogman
-
markstos
-
mp0liiu
-
sunnavy
-
wu-lee
-
Ævar Arnfjörð Bjarmason
-
大沢 和宏
NAME
Mouse::XS - A Mouse guts in XS
VERSION
This document describes Mouse version 2.0.0
DESCRIPTION
Mouse has an optional XS implementation, which is automatically built and used if available. According to benchmarks, this is about 2 times faster than Mouse::PurePerl.
INSTALL
The XS implementation are selected by default, but you can force it by passing the
--xs
option to Makefile.PL.perl Makefile.PL --xs
If you do not want to build the XS implementation, you can pass the
--pp
option to Makefile.PL.perl Makefile.PL --pp
Or if you use
cpanm
(>= 1.7), you can give--pp
option tocpanm
.cpanm --pp Mouse
The MOUSE_PUREPERL (or PERL_ONLY) environment variable
It can be used to enable the use of Mouse::PurePerl in order to test and debug programs that use Mouse.
CAVEAT
There are some Mouse::XS specific features.
- Mutating references to the return values of getters
-
When you take a reference from Mouse getters, like
$ref = \$obj->foo
, the$ref
refers\$obj->{foo}
. That is, mutating$$ref
also alters$obj->{foo}
. The behavior may confuse you so you'd better avoid to take a reference directly from getters.See https://rt.cpan.org/Ticket/Display.html?id=82945 for details.
DEPENDENCIES
The XS implementation requires Perl 5.8.1 or later, and a C compiler.
SEE ALSO
Module Install Instructions
To install Mouse, copy and paste the appropriate command in to your terminal.
cpanm Mouse
perl -MCPAN -e shell install Mouse
For more information on module installation, please visit the detailed CPAN module installation guide.