NAME
DB::Pluggable::Constants - Constants for debugger plugin hook methods
SYNOPSIS
package DB::Pluggable::MyUsefulCommand;
use DB::Pluggable::Constants ':all';
sub do_it {
my ($self, $context, $args) = @_;
...
if (...) {
...
return HANDLED;
} else {
return DECLINED;
}
}
DESCRIPTION
This module defines constants that should be used by hooks as return values. The following constants are defined:
- HANDLED
-
This constant should be returned by a command-related hook method to indicate that it has handled the debugger command.
- DECLINED
-
This constant should be returned by a command-related hook method to indicate that it has not handled the debugger command.
DB::Pluggable's plugin-enabled replacements for the debugger commands use these constants to determine whether a command has been handled by one of the plugins or whether it should be passed on to the default command handler defined in perl5db.pl
.
TAGS
If you talk about this module in blogs, on del.icio.us or anywhere else, please use the dbpluggable
tag.
VERSION
This document describes version 0.02 of DB::Pluggable::Constants.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to <bug-db-pluggable@rt.cpan.org
>, or through the web interface at http://rt.cpan.org.
INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
AVAILABILITY
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
AUTHOR
Marcel Grünauer, <marcel@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2007-2008 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.