Subject: | Vestigial call to warn in WWW::Mechanize::Firefox::post (line 910) |
Date: | Fri, 10 Jul 2015 17:00:22 +0000 |
To: | "bug-WWW-Mechanize-FireFox [...] rt.cpan.org" <bug-WWW-Mechanize-FireFox [...] rt.cpan.org> |
From: | Andy Post <andy.post [...] us.abb.com> |
Hi, Max.
I'm using $SIG{__WARN__} = sub { die $_[0] } to catch errors in my code that's using WWW::Mechanize::Firefox (because I eval all the calls to the module). This works really well except in one instance:
Firefox.pm lines 907 - 912:
# If we don't have data, encode the parameters:
if( !$options{ data }) {
my $req= HTTP::Request::Common::POST( $url, $options{params} );
warn $req->content;
$options{ data } = $req->content;
};
My guess is the call to &warn is left over from a long past debugging session. If so, would you remove it in the next release, please?
Thanks,
Andy