SHARYANTO::Package::Util - Package-related utilities
version 0.18
use SHARYANTO::Package::Util qw(package_exists); print "Package Foo::Bar exists" if package_exists("Foo::Bar");
None are exported by default, but they can be.
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").
package
$Foo::var = 1;
Foo
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.
Steven Haryanto <stevenharyanto@gmail.com>
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.
To install SHARYANTO::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Utils
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.