NAME
SHARYANTO::Package::Util - Package-related utilities
VERSION
version 0.19
SYNOPSIS
use SHARYANTO::Package::Util qw(package_exists);
print "Package Foo::Bar exists" if package_exists("Foo::Bar");
DESCRIPTION
FUNCTIONS
None are exported by default, but they can be.
package_exists($name) => BOOL
Return true if package "exists". By "exists", it means that the package has been defined by package
statement or some entries have been created in the symbol table (e.g. $Foo::var = 1;
will make the Foo
package "exist").
This function can be used e.g. for checking before aliasing one package to another. Or to casually check whether a module has been loaded.
FUNCTIONS
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.