in reply to How to build a tcp session with a remote server?

Could you give a suggestion which package is best to use in Windows ?
You're giving way to litte information to tell you what the best for you is, but I can give you the name of the package that allows you to write the simplest Perl program. Install the nmap utility set (it's not a CPAN or even a Perl package; it's set of C programs; Windows binaries are available). It comes with a utility ncat. If all you need to do is connect to a remote port and read its data:
my $HOSTNAME = "..."; # Name of host to connect to. my $PORTNUMBER = ...; # Port to connect to. my $data = `ncat -C $HOSTNAME $PORTNUMBER`;
Don't forget, code reuse doesn't stop at the CPAN boundaries!