Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
# no real synopsis - see Bio::Root::Object
BEGIN | Code | |
debug | No description | Code |
dont_warn | No description | Code |
fatal_on_warn | No description | Code |
monitor | No description | Code |
record_err | No description | Code |
roman2int | No description | Code |
strictness | No description | Code |
testing | No description | Code |
verbosity | No description | Code |
warn_on_fatal | No description | Code |
BEGIN | Top |
use vars qw($CGI $TIMEOUT_SECS); # $CGI is a boolean to indicate if the script is running as a CGI.}
# Useful for conditionally producing HTML-formatted messages
# or suppressing messages appropriate only for interactive sessions.
$CGI = 1 if $ENV{REMOTE_ADDR} || $ENV{REMOTE_HOST};
debug | description | prev | next | Top |
my $level = shift; if( defined $level) { $DEBUG = $level } else { $DEBUG = 0 } # $MONITOR and do{ print STDERR $DEBUG ? "Debug on ($DEBUG).\n\n" : "Debug off.\n\n"; };}
$MONITOR and do{ print STDERR $DEBUG ? "Debug on ($DEBUG).\n\n" : ""; }; $DEBUG;
dont_warn | description | prev | next | Top |
my $arg = shift; !$CGI and print STDERR "\n$0: Deprecated method dont_warn() called. Use verbosity(-1) instead\n"; if( $arg) { verbosity(-1)} else { verbosity(0); }}
fatal_on_warn | description | prev | next | Top |
my $arg = shift; !$CGI and print STDERR "\n$0: Deprecated method fatal_on_warn() called. Use strictness(2) instead\n"; if( $arg) { strictness(2)} else { strictness(0); } } #####################################################################################}
# END OF PACKAGE
#####################################################################################
1;
monitor | description | prev | next | Top |
my $level = shift; if( defined $level) { $MONITOR = $level } else { $MONITOR = 0 } $DEBUG and (print STDERR "Monitor on ($MONITOR).\n\n"); $MONITOR;}
record_err | description | prev | next | Top |
if( defined shift) { $RECORD_ERR = 1} else { $RECORD_ERR = 0 } $RECORD_ERR ? ($DEBUG && print STDERR "\n*** RECORD_ERR on. ***\n\n") : ($DEBUG && print STDERR "RECORD_ERR off.\n\n"); $RECORD_ERR; } ##}
## The following methods are deprecated and will eventually be removed.
##
roman2int | description | prev | next | Top |
my $roman = uc(shift); foreach (keys %ROMAN_NUMS) { return $_ if $ROMAN_NUMS{$_} eq $roman; } # Alternatively:}
# my @int = grep $ROMAN_NUMS{$_} eq $roman, keys %ROMAN_NUMS;
# return $int[0];
undef;
strictness | description | prev | next | Top |
# Values can integers from -2 to 2}
# See Bio::Root::Object::strict() for more explanation.
my $arg = shift; if( defined $arg) { $STRICTNESS = $arg} $DEBUG && print STDERR "\n*** STRICTNESS: $arg ***\n\n"; $STRICTNESS;
testing | description | prev | next | Top |
my $level = shift; if( defined $level) { $TESTING = $level } else { $TESTING = 0 } $TESTING ? ($MONITOR && print STDERR "Testing on ($TESTING).\n\n") : ($MONITOR && print STDERR "Testing off.\n\n"); $TESTING;}
verbosity | description | prev | next | Top |
# Values can integers from -1 to 1}
# See Bio::Root::Object::verbose() for more explanation.
my $arg = shift; if( defined $arg) { $VERBOSITY = $arg} $DEBUG && print STDERR "\n*** VERBOSITY: $arg ***\n\n"; $VERBOSITY;
warn_on_fatal | description | prev | next | Top |
my $arg = shift; !$CGI and print STDERR "\n$0: Deprecated method warn_on_fatal() called. Use strictness(-2) instead\n"; if( $arg) { strictness(-2)} else { strictness(0); }}
INSTALLATION | Top |
http://bio.perl.org/Core/LatestFollow the installation instructions included in the README file.
ftp://bio.perl.org/pub/DIST