ucanflyit has asked for the wisdom of the Perl Monks concerning the following question:

I recently cleaned off my machine and installed XP and Perl 5.8.7. I had some scripts that called the telnet module and worked fine with NT and Perl 5.8.4. They've stopped working now. It seems like they just hang. Any suggestions?

Replies are listed 'Best First'.
Re: telnet.pm trouble
by Aristotle (Chancellor) on Sep 20, 2005 at 20:13 UTC

    Maybe they don’t like the new wallpapers? Did you remember to stock the fridge for them? :-)

    Seriously, that description isn’t much help. How should anyone know?! We’ll need more details before anyone will have a fair chance at the right stab.

    What do you mean by telnet.pm – is that Net::Telnet or something homegrown? If it’s the standard module, have you turned on the debug output? When do your scripts hang? On connection, or do they not receive the data they expected and are waiting indefinitely? Have you let one run for a long time to see if it’s maybe just stuck waiting for a DNS lookup or something and eventually continues? Those are things I can think of off the top of my head; it might be something else completely.

    More information! Otherwise noone can help.

    Makeshifts last the longest.

Re: telnet.pm trouble
by davidrw (Prior) on Sep 20, 2005 at 20:56 UTC
    ditto on above replies .. also, newly installed XP -- do you have the firewall on (or a 3rd party firewall)? Is it blocking whatever port/host (what port?) you're trying to get at?
Re: telnet.pm trouble
by pboin (Deacon) on Sep 21, 2005 at 01:25 UTC

    The first suggestion that came to my mind: Stop using telnet.

    Telnet transmits passwords in the clear and has been replaced by many better tools. I suggest you kill two birds with one stone and make things more secure along w/ your original fix.

    Enlighten Yourself.

Re: telnet.pm trouble
by marto (Cardinal) on Sep 20, 2005 at 20:49 UTC