There's more than one way to do things | |
PerlMonks |
Re: Cache::Memcached and converting warnings to fatalby Narveson (Chaplain) |
on Apr 21, 2008 at 21:05 UTC ( [id://682030]=note: print w/replies, xml ) | Need Help?? |
I want to trap such warnings as errors (so I can eval/die in my code) What is the return value from stats() when the warning is thrown? Is it logically false? If so, you can say use Fatal qw(Cache::Memcached::stats);Of course, if this works, you can equally well say my $stats = $memd->stats() or die;and since you aren't doing that, I guess your failed stats() calls have been returning true values. I would file a bug report.
In Section
Seekers of Perl Wisdom
|
|