X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=script%2Fndweb_cgi.pl;h=6cb069b2a32e6ae0b4fcc2c3e07c3ee3443f9ef6;hp=a008db605e1c42e44fa15071a6ffab0d52d7aa2d;hb=c018a7ccbb1fd8bdec5c8f97b151686ae933870b;hpb=e4bc2f39c57c25dacc316a602e8d0280b4fbcce7 diff --git a/script/ndweb_cgi.pl b/script/ndweb_cgi.pl index a008db6..6cb069b 100755 --- a/script/ndweb_cgi.pl +++ b/script/ndweb_cgi.pl @@ -1,14 +1,7 @@ #!/usr/bin/env perl -BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' } - -use strict; -use warnings; -use FindBin; -use lib "$FindBin::Bin/../lib"; -use NDWeb; - -NDWeb->run; +use Catalyst::ScriptRunner; +Catalyst::ScriptRunner->run('NDWeb', 'CGI'); 1; @@ -30,8 +23,8 @@ Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT - This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut +