in reply to Re^2: Network Programming With Perl example 1
in thread Network Programming With Perl example 1

Works for me (on Windows 98 with Perl 5.6.1):
(using your code)
C:\perl>perl test.pl mail.hotmail.com:smtp 220 mc9-f39.hotmail.com Sending unsolicited commercial or bulk e-mail +to Microso ft's computer network is prohibited. Other restrictions are found at h +ttp://priv acy.msn.com/Anti-spam/. Violations will result in use of equipment loc +ated in Ca lifornia and other states. Sat, 30 Apr 2005 20:00:05 -0700

chas

Replies are listed 'Best First'.
Re^4: Network Programming With Perl example 1
by Anonymous Monk on May 01, 2005 at 03:10 UTC
    Well what in the world can be going wrong? Do you think I should re-install Perl? I have 5.8x.
      No, it works fine with Activestate Perl 5.8.0 for me. You have to be connected to the web, of course ;-)
      (I tried it disconnected, and got an "Invalid Argument" error, but I didn't imagine that was the problem you are having. Did you try "perl -c" on your script?)
      chas
        I am connected to the internet via a router:) And I did the -c and it says the syntax is OK. The error I get is "A socket operation attempted to an unreachable network..." :(