Skip to content

Instantly share code, notes, and snippets.

@zby
Created February 11, 2010 12:10
Show Gist options
  • Save zby/301461 to your computer and use it in GitHub Desktop.
Save zby/301461 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Plack::Request;
sub {
my $env = shift;
# eval { die 'aaaaaaaaaaaaaaaaaaaa'; };
return [
'500',
[ 'Content-Type' => 'text/plain' ],
[ "Error" ],
];
}
# uncommenting the eval line should be a noop in my understanding
# but it triggers a stack strace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment