It's taken me a while to track down a sudden problem with my code, but it appears that WWW::Mechanize::GZip is somehow triggering my $SIG{DIE} handler. Consider this code:
use strict;
use WWW::Mechanize::GZip;
$SIG{__DIE__} = sub {
print "WTF??? WHY IS THIS BEING TRIGGERED?\n";
};
my $mech = WWW::Mechanize::GZip->new();
$mech->get( 'http://ammoseek.com/' );
print $mech->content(), "\n";
Any idea why this would be happening? And what can I do to prevent it?
Thanks,
-Mike