X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=58f605ed63500859ae36941711c84f7911cc0657;hp=14d95da66ff20dd4256b8e87bb03c01f984abcb0;hb=367d15f8e1589aff5a4bc143ab0e958e3e311dd4;hpb=c24122df7669010c2e7209ce40eced3b4cd04183 diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 14d95da..58f605e 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -527,7 +527,7 @@ all_pod_coverage_ok(); __cgi__ [% startperl %] -w -BEGIN { $ENV{CATALYST_ENGINE} = 'CGI' } +BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' } use strict; use FindBin; @@ -566,7 +566,7 @@ it under the same terms as perl itself. __fastcgi__ [% startperl %] -w -BEGIN { $ENV{CATALYST_ENGINE} = 'FastCGI' } +BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' } use strict; use FindBin; @@ -606,7 +606,7 @@ __server__ [% startperl %] -w BEGIN { - $ENV{CATALYST_ENGINE} = 'HTTP'; + $ENV{CATALYST_ENGINE} ||= 'HTTP'; $ENV{CATALYST_SCRIPT_GEN} = [% scriptgen %]; } @@ -664,7 +664,7 @@ it under the same terms as perl itself. __test__ [% startperl %] -w -BEGIN { $ENV{CATALYST_ENGINE} = 'Test' } +BEGIN { $ENV{CATALYST_ENGINE} ||= 'Test' } use strict; use Getopt::Long;