InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:
use warnings; use Cache::Memcached; my $memd = new Cache::Memcached {servers => ["$host:$port"]}; my $stats = $memd->stats();
use warnings FATAL => 'all';
$SIG{'__WARN__'} = sub { die $_[0]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cache::Memcached and converting warnings to fatal
by mscharrer (Hermit) on Apr 21, 2008 at 19:50 UTC | |
|
Re: Cache::Memcached and converting warnings to fatal
by Narveson (Chaplain) on Apr 21, 2008 at 21:05 UTC | |
|
Re: Cache::Memcached and converting warnings to fatal
by rhesa (Vicar) on Apr 21, 2008 at 21:40 UTC |