Skip to content

Instantly share code, notes, and snippets.

@exodist
Created April 28, 2015 21:20
Show Gist options
  • Save exodist/0afc0a13e4c51d55b500 to your computer and use it in GitHub Desktop.
Save exodist/0afc0a13e4c51d55b500 to your computer and use it in GitHub Desktop.
my $iapp = Plack::App::WrapCGI->new(script => "$path/$cgi")->to_app;
my $app = sub {
my $env = shift;
return [
'404',
['Content-Type' => 'text/plain'],
["404 error\n"]
] unless -e $self->path . $env->{PATH_INFO};
$iapp->($env);
};
__END__
<h1>Software error:</h1>
<pre>Can't use string (&quot;1&quot;) as an ARRAY ref while &quot;strict refs&quot; in use at /opt/ndn-perl/2015.03.27.074651-b2372f5/lib/site_perl/5.20.2/Starman/Server.pm line 471.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment