perldoc > Class::MOP::Package

📛 NAME

Class::MOP::Package - Package Meta Object

🚀 Quick Reference

Use CaseCommandDescription
Get or create a metaclass for a packageClass::MOP::Package->initialize($package_name)Returns an existing metaclass or creates a new one
Force reinitialize a package metaclassClass::MOP::Package->reinitialize($package, %options)Removes existing metaclass, then calls initialize
Create a new anonymous packageClass::MOP::Package->create_anon(%options)Creates an anonymous package, optionally cached
Check if package is anonymous$metapackage->is_anonReturns true if anonymous
Get package name$metapackage->nameReturns the package name
Get namespace symbol table$metapackage->namespaceReturns hashref of symbol table
Add a package variable$metapackage->add_package_symbol($variable_name, $initial_value)Creates a variable in the symbol table
Get a package variable$metapackage->get_package_symbol($variable_name)Returns variable as reference or undef
Get or create a package variable$metapackage->get_or_add_package_symbol($variable_name)Returns existing or default variable
Check if package variable exists$metapackage->has_package_symbol($variable_name)Returns true if defined
Remove a package variable$metapackage->remove_package_symbol($variable_name)Removes the variable from symbol table
Remove a glob by name$metapackage->remove_package_glob($glob_name)Removes all variables and subs with that name
List all glob names$metapackage->list_all_package_symbols($type_filter)Returns list of glob names (no sigils)
Get all glob names and values$metapackage->get_all_package_symbols($type_filter)Returns hashref of name => value
Get metaclass of this classClass::MOP::Package->metaReturns a Class::MOP::Class instance

📦 VERSION

version 2.2200

📖 DESCRIPTION

The Package Protocol provides an abstraction of a Perl 5 package. A package is basically a namespace, and this module provides methods for looking at and changing that namespace's symbol table.

🔧 METHODS

✍️ AUTHORS

📄 COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Class::MOP::Package
📛 NAME 🚀 Quick Reference 📦 VERSION 📖 DESCRIPTION 🔧 METHODS ✍️ AUTHORS 📄 COPYRIGHT AND LICENSE

Generated by phpman v4.9.29-dirty · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-25 22:27 @216.73.216.138
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^