Mercurial > pub > site.implab
annotate public_html/cgi-bin/handler.pl @ 0:aac1085b256d
initial commit
author | cin |
---|---|
date | Sat, 15 Mar 2014 00:34:33 +0400 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/perl -wT |
2 #-d:NYTProf | |
3 use strict; | |
4 | |
5 BEGIN { | |
6 require "./_config.pm"; | |
7 } | |
8 | |
9 use CGI; | |
10 use IMPL::require { | |
11 TApp => 'Benzin::Web::Application' | |
12 }; | |
13 | |
14 eval { | |
15 my $instance = TApp->spawn; | |
16 | |
17 $instance->Run(); | |
18 }; | |
19 if ($@) { | |
20 print CGI::header(-status => 500, type => 'text/plain'); | |
21 print $@; | |
22 } |