in reply to Using Net::Telnet and Win32::GUI

You could fork off and have the child process do the telnetting. Then read the data back from the child through a pipe.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Using Net::Telnet and Win32::GUI
by kpd01 (Initiate) on May 13, 2003 at 17:26 UTC
    I was under the impression that the fork command was only applicable on UNIX type systems........Since I have only been using perl for about 6 months I may be wrong or maybe there is some other command that is similar in the windows environment.......any help is appreciated.........

      If perl was compiled with iThreads (and most Win32 binary distributions are), then iThreads are used to emulate fork() on Win32.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

        You are right in that it appears as though the perl I am using was compiled with iThreads. When I check the configuration summary with "perl -V" I do see "useithreads=define". My next question then is "Where can I find some documentation on how to use it?". There is nothing in the perldocs in regards to it. At least nothing that I can find. I have also poked around on the web and what I do see is sketchy at best. Thanks again......