>> you need to find out why die_page is being called. > > Do you have any advice on the best way to do that?You could start by using caller(): my ($package, $filename, $line) = caller; within the sub, in order to see where it's being called from.
Actually, the only place die_page is called in the module is: $SIG{PIPE} = sub { die_page($r); }; What does that mean? - Grant