Codex

Package::Constants

Section: User Contributed Perl Documentation (3pm)

Updated: 2013-10-24

Index?action=index Return to Main Contents


NAME

Package::Constants - List all constants declared in a package

SYNOPSIS

DESCRIPTION

lists all the constants defined in a certain package. This can be useful for, among others, setting up an autogenerated for a Constants.pm file.

CLASS METHODS

@const = Package::Constants->list( PACKAGE_NAME );

Lists the names of all the constants defined in the provided package.

GLOBAL VARIABLES

$Package::Constants::DEBUG

When set to true, prints out debug information to STDERR about the package it is inspecting. Helps to identify issues when the results are not as you expect.

Defaults to false.

BUG REPORTS

Please report bugs or other issues to <[email protected]<gt>.

AUTHOR

This module by Jos Boumans <[email protected]>.

COPYRIGHT

This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.


Index

NAME

SYNOPSIS

DESCRIPTION

CLASS METHODS

@const = Package::Constants->list( PACKAGE_NAME );

GLOBAL VARIABLES

$Package::Constants::DEBUG

BUG REPORTS

AUTHOR

COPYRIGHT