Skip Menu |

This queue is for tickets about the Cache-Memcached CPAN distribution.

Report information
The Basics
Id: 36860
Status: rejected
Priority: 0/
Queue: Cache-Memcached

People
Owner: Nobody in particular
Requestors: zagap [...] users.sourceforge.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] avoid set $@ when "use Cache::Memcached"
Very minor annoyance: for avoid set $@ when eval "use Cache::Memcached" ( Cache::Memcached::GetParserXS not installed ): --- /usr/local/lib/perl5/site_perl/5.8.8/Cache/Memcached.pm 2007-07-17 21:47:40.000000000 +0400 +++ Memcached.pm 2008-06-20 15:22:15.000000000 +0400 @@ -41,8 +41,10 @@ BEGIN { $HAVE_ZLIB = eval "use Compress::Zlib (); 1;"; } -my $HAVE_XS = eval "use Cache::Memcached::GetParserXS; 1;"; -$HAVE_XS = 0 if $ENV{NO_XS}; +my $HAVE_XS = 0; +unless ($ENV{NO_XS} ) { + $HAVE_XS = eval "use Cache::Memcached::GetParserXS; 1;"; + } my $parser_class = $HAVE_XS ? "Cache::Memcached::GetParserXS" : "Cache::Memcached::GetParser"; if ($ENV{XS_DEBUG}) {
I can't reproduce this :/ I don't understand how your patch fixes it either. Mind my ignorance if it's simple, a test script showing the error would help a lot. Rejecting the ticket for now.