Mouse::Util(3pm)
π
Mouse::Util(3pm) β User Contributed Perl Documentation β¨
Okay so bestie, welcome to the Mouse::Util(3pm) page from User Contributed Perl Documentation ππ. It's giving utility-function group chat, and we are seated.
πΈ NAME πΈ
Mouse::Util β utilities for working with Mouse classes, fr fr π
π¦ VERSION π¦
This document describes Mouse version v2.6.2 β¨
π SYNOPSIS π
use Mouse::Util; # turns on strict and warnings
π DESCRIPTION π
Okay so this module provides a set of utility functions. Many of these functions are intended for use in Mouse itself or MouseX modules, but some of them may be useful for use in your own code. No cap, some of these little guys are genuinely useful even outside the Mouse inner circle π«Ά
π₯ IMPLEMENTATIONS FOR π₯
π Moose::Util functions π
The following functions are exportable β yes, take them with you, bestie π
find_meta($class_or_obj)β same asMouse::Util::class_of(), periodt β¨does_role($class_or_obj, $role_or_obj)β exportable, and there's the exact signature for you πresolve_metaclass_alias($category, $name, %options)β exportable, signature served fresh πapply_all_roles($applicant, @roles)β exportable, and yes, that's the whole signature on this page πΈenglish_listi(@items)β exportable, keepingenglish_listi(@items)exactly as written, iykyk π«Ά
π§ Class::MOP functions π§
The following functions are not exportable π€
Mouse::Util::is_class_loaded($classname) -> Boolβ returns whether$classnameis actually loaded or not. It uses a heuristic which involves checking for the existence of$VERSION,@ISA, and any locally-defined method πMouse::Util::load_class($classname) -> ClassNameβ this will load a given$classname(or die if it is not loadable). This function can be used in place of tricks likeeval "use $module ()"or usingrequireπ₯Mouse::Util::class_of($classname_or_object) -> MetaClassβ listed here with the exact signature, not exportable πMouse::Util::get_metaclass_by_name($classname) -> MetaClassβ listed here with the exact signature, not exportable πMouse::Util::get_all_metaclass_instances() -> (MetaClasses)β listed here with the exact signature, not exportable β¨Mouse::Util::get_all_metaclass_names() -> (ClassNames)β listed here with the exact signature, not exportable π¦
π mro (or MRO::Compat) π
get_linear_isaβ the name on this page, and that's the whole note here, bestie π
π Sub::Identify π
get_code_infoβ the name on this page, no extra description here, periodt π
π Mouse specific utilities π
not_supportedβ Mouse-specific utility name, exactly as listed πget_code_packageβ Mouse-specific utility name, exactly as listed β¨get_code_refβ Mouse-specific utility name, exactly as listed π
π SEE ALSO π
Moose::UtilClass::MOPSub::IdentifymroMRO::Compat
With love, sparkle, and zero cap: that was Mouse::Util(3pm) from User Contributed Perl Documentation, for Mouse version v2.6.2 π The footer says source/version perl v5.42.2 and date 2026-04-21, so consider this your cute little sign-off, bestie π«Άβ¨ Byeee!
π¦ 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