Debian Codegraph @

t/hello.cgi

raw
1 use CGI;
2 $COUNTER++;
3
4 BEGIN { $SIG{USR1} = 'IGNORE'; $SIG{TERM} = sub {"COMPILE TERM"} }
5
6 $SIG{USR1} = 'IGNORE';
7 $SIG{TERM} = sub {"RUN TERM"};
8
9 my $q = CGI->new;
10
11 chomp(my $greeting = <DATA>);
12
13 print $q->header, $greeting, scalar $q->param('name'), " counter=$COUNTER";
14
15 exit $q->param('exit_status') || 0;
16
17 __DATA__
18 Hello