Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created December 12, 2009 19:41
Show Gist options
  • Save miyagawa/255022 to your computer and use it in GitHub Desktop.
Save miyagawa/255022 to your computer and use it in GitHub Desktop.
Devel::StackTrace::WithLexicals + Text::MicroTemplate = Segfault on errors
#!/usr/bin/perl
use strict;
use Devel::StackTrace::WithLexicals;
use Text::MicroTemplate ':all';
my $trace;
local $SIG{__DIE__} = sub {
$trace = Devel::StackTrace::WithLexicals->new;
die @_;
};
build_mt("<?= foo() ?>")->();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment