in reply to Network Programming With Perl example 1

OKAY GUYS!!

I can't get it working on my WinXP system so I converted it to a CGI and uploaded to my linux web host and it DOES work. I sent the perl file to my WinXP friend and it doesn't work for his system either.

Can someone tell me what I have to do to get it to work on Windows? It's important otherwise reading the rest of this book won't do me any good if I can't use it.

  • Comment on Re: Network Programming With Perl example 1

Replies are listed 'Best First'.
Re^2: Network Programming With Perl example 1
by PodMaster (Abbot) on May 01, 2005 at 07:03 UTC
    Unknown error isn't very useful, but the error still has a number. To get the error number (which you can later look up on msdn) use int (as in int($!)  int($^E)).
    C:\>perl -e"$!=122;warn $!; $!=333;warn $!; die int $!" Unknown error at -e line 1. Unknown error at -e line 1. 333 at -e line 1.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re^2: Network Programming With Perl example 1
by data64 (Chaplain) on May 01, 2005 at 12:36 UTC

    If you are using XP sp2, try turning off the firewall while you test this. Also, some anti-virus programs like McAfee also block certain ports such as the smtp port from going out).