1Class::MOP::Package(3)User Contributed Perl DocumentationClass::MOP::Package(3)
2
3
4

NAME

6       Class::MOP::Package - Package Meta Object
7

SYNOPSIS

DESCRIPTION

METHODS

11       meta
12       initialize ($package_name)
13       name
14           This is a read-only attribute which returns the package name for
15           the given instance.
16
17       namespace
18           This returns a HASH reference to the symbol table. The keys of the
19           HASH are the symbol names, and the values are typeglob references.
20
21       add_package_symbol ($variable_name, ?$initial_value)
22           Given a $variable_name, which must contain a leading sigil, this
23           method will create that variable within the package which houses
24           the class. It also takes an optional $initial_value, which must be
25           a reference of the same type as the sigil of the $variable_name
26           implies.
27
28       get_package_symbol ($variable_name)
29           This will return a reference to the package variable in $vari‐
30           able_name.
31
32       has_package_symbol ($variable_name)
33           Returns true (1) if there is a package variable defined for $vari‐
34           able_name, and false (0) otherwise.
35
36       remove_package_symbol ($variable_name)
37           This will attempt to remove the package variable at $variable_name.
38
39       remove_package_glob ($glob_name)
40           This will attempt to remove the entire typeglob associated with
41           $glob_name from the package.
42
43       list_all_package_symbols (?$type_filter)
44           This will list all the glob names associated with the current pack‐
45           age.  By inspecting the globs returned you can discern all the
46           variables in the package.
47
48           By passing a $type_filter, you can limit the list to only those
49           which match the filter (either SCALAR, ARRAY, HASH or CODE).
50

AUTHORS

52       Stevan Little <stevan@iinteractive.com>
53
55       Copyright 2006, 2007 by Infinity Interactive, Inc.
56
57       <http://www.iinteractive.com>
58
59       This library is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.8.8                       2007-11-07            Class::MOP::Package(3)
Impressum