Why don't you tell us if the perl version is related? What are the versions
of perl running on A, B and C?

-wes

On 5/29/08, 老邪 <[EMAIL PROTECTED]> wrote:
>
> hi, all
>     i got a problem in getting data with perl using Cached::Memcached.
>
> here is the situation
>
> 1. there are three machines
> A. running a memcached server and listening 11211 port  (Centos 4/ perl
> 5.8.6 / cached::memcached 1.2.4 installed)
> B. a client with running a simple perl script (centos 4/ perl 5.8.5 /
> cached::memcached 1.2.4 installed)
> C. a client with running a simple perl script (my pc - winxp / perl 5.10 /
> cached::memcached 1.2.4 installed)
>
> 2. here is the perl script
> ------------------------------------
> #!/usr/bin/perl
> use Data::Dumper;
> use Cache::Memcached;
>
> ## memcached server ip
> my $memd_server = 'IP_OF_A_MACHINE:11211';
> my $memd_key = 'my_key';
>
>
> my $memd = new Cache::Memcached {
>     'servers' => [ $memd_server ],
>     'debug' => 0,
>     'compress_threshold' => 10_000,
>   };
>
>
> my $attack_times = $memd->get($memd_key);
>
> print Dumper $attack_times;
> -----------------------------------------
>
> 3. telent testing
> 1) telnet A 11211 on B, can connect to memcached server, 'stats' , 'get
> my_key' command both are working
> 2) telent A 11211 on C, can connect to memcached server, 'stats' , 'get
> my_key' command both are working
>
> 4. perl script testing
> 1) running perl script on A, can get the result
> 2) running perl script on B, get no result (not showing any error)
> 3) running perl script on C, can get the result
>
>
> it's weird for me. still can't understand why B can't get data with the
> same script. seems the cached::memcached
> is not working... but don't know why :(
>
> is the perl version related???
>
> any hints? thank you very much!!!!
>

Reply via email to