Mercurial > pub > site.implab
annotate public_html/cgi-bin/handler.pl @ 14:d997ff96acf1
sync
author | sergey |
---|---|
date | Mon, 19 May 2014 18:34:16 +0400 |
parents | aac1085b256d |
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 } |