Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Mouse::Util

Name Mouse::Util
Version v2.5.10
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Mouse/Util.pm
Is Core No
Search CPAN for this module Mouse::Util
Documentation Mouse::Util
Module Details Mouse::Util

NAME

Mouse::Util - Utilities for working with Mouse classes


VERSION

This document describes Mouse version v2.5.10


SYNOPSIS

    use Mouse::Util; # turns on strict and warnings


DESCRIPTION

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.


IMPLEMENTATIONS FOR

Moose::Util functions

The following functions are exportable.

find_meta($class_or_obj)

The same as Mouse::Util::class_of().

does_role($class_or_obj, $role_or_obj)

resolve_metaclass_alias($category, $name, %options)

apply_all_roles($applicant, @roles)

english_listi(@items)

Class::MOP functions

The following functions are not exportable.

Mouse::Util::is_class_loaded($classname) -> Bool

Returns whether $classname is 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 like eval "use $module ()" or using require.

Mouse::Util::class_of($classname_or_object) -> MetaClass

Mouse::Util::get_metaclass_by_name($classname) -> MetaClass

Mouse::Util::get_all_metaclass_instances() -> (MetaClasses)

Mouse::Util::get_all_metaclass_names() -> (ClassNames)

mro (or MRO::Compat)

get_linear_isa

Sub::Identify

get_code_info


Mouse specific utilities

not_supported

get_code_package

get_code_ref


SEE ALSO

the Moose::Util manpage

the Class::MOP manpage

the Sub::Identify manpage

mro

the MRO::Compat manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026