Name
Class::Usul::Constants - Definitions of constant values
Synopsis
use Class::Usul::Constants;
my $bool = TRUE; my $slash = SEP;
Description
Exports a list of subroutines each of which returns a constants value
Configuration and Environment
Defines the following class attributes;
Assert
Config_Extn
Config_Key
Exception_Class
Subroutines/Methods
ARRAY
String ARRAY
ASSERT
Return a coderef which is imported by Class::Usul::Functions into the callers namespace as the assert
function. By default this will be the empty subroutine, sub {}
. Change this by setting the Assert
class attribute
BRK
Separate leader from message, (: )
CODE
String CODE
COMMA
The comma character
CONFIG_EXTN
The default configuration file extension, .json. Change this by setting the Config_Extn
class attribute
DEFAULT_CONFHOME
Default directory for the config file. The function find_apphome
defaults to returning this value if it cannot find a more suitable one
DEFAULT_ENCODING
String UTF-8
DEFAULT_ENVDIR
An arrayref which if passed to catfile is the directory which will contain the applications installation information
DEFAULT_L10N_DOMAIN
String default
. The name of the default message catalog
DIGEST_ALGORITHMS
List of algorithms to try as args to Digest
ENCODINGS
List of supported IO encodings
EVIL
The Config operating system name of the one whose name cannot be spoken out loud
EXCEPTION_CLASS
The name of the class used to throw exceptions. Defaults to Class::Usul::Exception but can be changed by setting the Exception_Class
class attribute
EXTNS
List of possible file suffixes used on Perl scripts
FAILED
Non zero exit code indicating program failure
FALSE
Digit 0
HASH
String HASH
LANG
Default language code, en
LBRACE
The left brace character, {
LOCALIZE
The character sequence that introduces a localization substitution parameter, [_
LOG_LEVELS
List of methods the log object is expected to support
MODE
Default file creation mask
NO
The letter n
NUL
Empty string
OK
Returns good program exit code, zero
PHASE
The default phase number used to select installation specific config
PREFIX
Array ref representing the default parent path for a normal install
QUIT
The character q
SEP
Slash /
character
SPC
Space character
TRUE
Digit 1
UNDEFINED_RV
Digit -1
. Indicates that a method wrapped in a try/catch block failed to return a defined value
UNTAINT_CMDLINE
Regular expression used to untaint command line strings
UNTAINT_IDENTIFIER
Regular expression used to untaint identifier strings
UNTAINT_PATH
Regular expression used to untaint path strings
USUL_CONFIG_KEY
Default configuration hash key, Plugin::Usul
. Change this by setting the Config_Key
class attribute
UUID_PATH
An arrayref which if passed to catfile is the path which will return a unique identifier if opened and read
WIDTH
Default terminal screen width in characters
YES
The character y
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE