Mercurial > pub > site.implab
annotate public_html/cgi-bin/handler.pl @ 4:699dd88f0ef2
sync
author | sergey |
---|---|
date | Thu, 08 May 2014 15:55:40 +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 } |