Changeset 556
- Timestamp:
- 05/09/07 23:43:46 (2 years ago)
- Files:
-
- trunk/api/perl/lib/Cache/Memcached.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/api/perl/lib/Cache/Memcached.pm
r538 r556 19 19 use Errno qw( EINPROGRESS EWOULDBLOCK EISCONN ); 20 20 use Cache::Memcached::GetParser; 21 my $HAVE_XS = eval "use Cache::Memcached::GetParserXS; 1;";22 $HAVE_XS = 0 if $ENV{NO_XS};23 24 my $parser_class = $HAVE_XS ? "Cache::Memcached::GetParserXS" : "Cache::Memcached::GetParser";25 if ($ENV{XS_DEBUG}) {26 print "using parser: $parser_class\n";27 }28 29 21 use fields qw{ 30 22 debug no_rehash stats compress_threshold compress_enable stat_callback … … 48 40 BEGIN { 49 41 $HAVE_ZLIB = eval "use Compress::Zlib (); 1;"; 42 } 43 44 my $HAVE_XS = eval "use Cache::Memcached::GetParserXS; 1;"; 45 $HAVE_XS = 0 if $ENV{NO_XS}; 46 47 my $parser_class = $HAVE_XS ? "Cache::Memcached::GetParserXS" : "Cache::Memcached::GetParser"; 48 if ($ENV{XS_DEBUG}) { 49 print "using parser: $parser_class\n"; 50 50 } 51 51
