| 1 | package CGI::OptimalQuery::CustomOutput; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | no warnings qw( uninitialized ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use base 'CGI::OptimalQuery::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | use CGI(); | ||
| 8 | |||
| 9 | our $custom_output_handler; | ||
| 10 | |||
| 11 | sub output { | ||
| 12 | my $o = shift; | ||
| 13 | my $codeRef = $$o{custom_output_handler} || $custom_output_handler; | ||
| 14 | $codeRef->($o) if $codeRef; | ||
| 15 | $o->finish(); | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; | ||