in reply to Cache::Memcached and converting warnings to fatal

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.