X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=script%2Fndweb_cgi.pl;h=6cb069b2a32e6ae0b4fcc2c3e07c3ee3443f9ef6;hb=HEAD;hp=835d4e7f5bb9b0427a386a9ec7105ad2e25814b6;hpb=3fc40135d773a95ede229e71efb48e07fdf3c418;p=ndwebbie.git diff --git a/script/ndweb_cgi.pl b/script/ndweb_cgi.pl index 835d4e7..6cb069b 100755 --- a/script/ndweb_cgi.pl +++ b/script/ndweb_cgi.pl @@ -1,14 +1,7 @@ -#!/usr/bin/perl -w +#!/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; @@ -24,14 +17,14 @@ See L Run a Catalyst application as a cgi script. -=head1 AUTHOR +=head1 AUTHORS -Sebastian Riedel, C +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT - -This library is free software, you can redistribute it and/or modify +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut +