GX::Meta::Package - Package metaclass
None.
This module provides the GX::Meta::Package class.
new
Returns a new GX::Meta::Package metaobject.
$package = GX::Meta::Package->new( %attributes );
name ( string ) [ required ]
name
The name of the package, for example "My::Package".
$package ( GX::Meta::Package object )
$package
GX::Meta::Exception
Alternative syntax:
$package = GX::Meta::Package->new( $name );
$name ( string )
$name
assign_to_typeglob
Performs a typeglob assignment.
$package->assign_to_typeglob( $symbol, $reference );
$symbol ( string )
$symbol
A symbol name.
$reference ( reference )
$reference
A scalar, array, hash or code reference.
clear_typeglob_slot
Clears the specified typeglob slot.
$package->clear_typeglob_slot( $symbol, $slot );
$slot ( string )
$slot
Possible values: "SCALAR", "ARRAY", "HASH", "CODE" or "IO".
Returns the name of the package, for example "My::Package".
$name = $package->name;
prefix
Returns the package prefix, for example "My::Package::".
$prefix = $package->prefix;
$prefix ( string )
$prefix
qualify
Prepends the package prefix to the given name and returns the result.
$qualified_name = $package->qualify( $name );
$qualified_name ( string )
$qualified_name
symbol_table
Returns a reference to the associated symbol table.
$symbol_table = $package->symbol_table;
$symbol_table ( HASH reference )
$symbol_table
HASH
wipe
Undefines every symbol that lives in the associated symbol table. Danger, Will Robinson!
$package->wipe;
GX::Meta
Jörg A. Uzarek <uzarek@runlevelnull.de>
Copyright (c) 2009-2011 Jörg A. Uzarek.
This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.
To install GX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GX
CPAN shell
perl -MCPAN -e shell install GX
For more information on module installation, please visit the detailed CPAN module installation guide.