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 ("some condition") {
# ...
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.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests 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://search.cpan.org/dist/DB-Pluggable/.
The development version lives at http://github.com/hanekomu/db-pluggable/. Instead of sending patches, please fork this project using the standard git and github infrastructure.
AUTHORS
Marcel Grünauer, <marcel@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2008-2009 by Marcel Grünauer.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.