CGI-Application-Plugin-DebugMessage
view release on metacpan or search on metacpan
lib/CGI/Application/Plugin/DebugMessage.pm view on Meta::CPAN
my $caller = scalar(caller);
$caller->add_callback('postrun', 'CGI::Application::Plugin::DebugMessage::log2footer');
goto &Exporter::import;
}
sub debug {
my $self = shift;
my @added = @_;
if (@added) {
my $footer = $self->param("${prefix}_footer") || [];
my $caller = bless([caller(0)], "${prefix}::Caller");
@added = map { [$caller, $_] } @added;
push(@{$footer}, @added);
$self->param("${prefix}_footer" => $footer)
}
}
sub debug_ocode {
my $self = shift;
my $code = shift;
$self->param("${prefix}_code" => $code) if (UNIVERSAL::can($self, 'param'));
( run in 0.240 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )