line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::Carp::Fatals;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
918
|
use strict;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
5
|
1
|
|
|
1
|
|
914
|
use CGI::Carp qw(fatalsToBrowser set_message);
|
|
1
|
|
|
|
|
5226
|
|
|
1
|
|
|
|
|
6
|
|
6
|
1
|
|
|
1
|
|
1021
|
use HTML::Perlinfo;
|
|
1
|
|
|
|
|
63849
|
|
|
1
|
|
|
|
|
187
|
|
7
|
|
|
|
|
|
|
@CGI::Carp::Fatals::ISA = qw(Exporter);
|
8
|
|
|
|
|
|
|
@CGI::Carp::Fatals::EXPORT = (@CGI::Carp::EXPORT);
|
9
|
|
|
|
|
|
|
@CGI::Carp::Fatals::EXPORT_OK = qw(fatalsRemix set_message);
|
10
|
|
|
|
|
|
|
$CGI::Carp::Fatals::VERSION = '0.02';
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub fatalsRemix {
|
13
|
|
|
|
|
|
|
|
14
|
0
|
0
|
|
0
|
0
|
|
my($wm) = $ENV{SERVER_ADMIN} ?
|
15
|
|
|
|
|
|
|
qq[the webmaster ($ENV{SERVER_ADMIN})] :
|
16
|
|
|
|
|
|
|
"this site's webmaster";
|
17
|
0
|
|
|
|
|
|
my ($outer_message) = <
|
18
|
|
|
|
|
|
|
For help, please send mail to $wm, giving this error message
|
19
|
|
|
|
|
|
|
and the time and date of the error.
|
20
|
|
|
|
|
|
|
END
|
21
|
|
|
|
|
|
|
;
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
0
|
|
|
|
my $info_option = shift || 'INFO_VARIABLES';
|
24
|
0
|
|
|
|
|
|
my $info = perlinfo($info_option);
|
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
set_message("$outer_message $info ");
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
}
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1;
|
31
|
|
|
|
|
|
|
__END__
|