use strict; use Debug::DumpCore (); use Cwd() my $r = shift; $r->send_http_header("text/plain"); my $dir = getcwd; $r->print("The core should be found at $dir/core\n"); Debug::DumpCore::segv();