NAME
BW::Constants - Commonly used constants
SYNOPSIS
use BW::Constants;
sub x { blah blah; return SUCCESS }
sub y { blah blah; return FAILURE }
CONSTANTS
- TRUE
-
The value 1 for use in logical tests and conditionals.
- SUCCESS
-
The value 1 for use as a return value to indicate success.
- FALSE
-
The value '' for use in logical tests and conditionals. Note: This is what perl uses internally for false as it avoids ambiguity with numeric 0.
- FAILURE
-
The value '' for use as a return value to indicate failure.
- CR
-
ASCII Carriage Return.
- LF
-
ASCII Line Feed.
- CRLF
-
CR + LF ... suitable for MIME line endings and other things.
- EMPTY
-
The value '' for use as an empty string.
- VOID
-
The value undef for use as a non-value return.
AUTHOR
Written by Bill Weinman <http://bw.org/>
COPYRIGHT
Copyright (c) 1995-2010 The BearHeart Group, LLC
HISTORY
2010-02-02 bw 1.2 -- first CPAN release
2007-10-20 bw -- added CR, LF, and CRLF
2007-10-18 bw -- initial release.