Quoth Thomas Kratz <>:
> If it happens with 'use warnings', then either
>
> my ($p,$r,$h);
> {
> no warnings qw/uninitialized/;
> ($p,$r,$h) = $e->do_request('GET', $path, undef);
> }
>
> or trapping the __WARN__ signal with
my ($p, $r, $h);
{
> local SIG{__WARN__} = sub {
> ...
> do something with the warning message in $_[0]
> ...
> }
> my($p,$r,$h) = $e->do_request('GET', $path, undef);
}
>
> will perhaps do what you want.
Or, if it is old code that predates 'warnings',
my ($p, $r, $h);
{
local $^W;
($p, $r, $h) = ...;
}
Ben
--
Although few may originate a policy, we are all able to judge it.
- Pericles of Athens, c.430 B.C.