in reply to perl+telnet(with out Net::Telnet)

I'm not allowed to use any CPAN packages
First, Net::Telnet is part of the Perl core (unless you are using a very old version), so it is pure Perl. Secondly, if you are not permitted to include separated modules into your application, you can just steal the code from CPAN and paste it into your code.

Maybe you should put on top of this code the comment:

# Message to my supervisor: No, I did not steal this # code from CPAN. Oh no, this is not something I would # ever dare to do.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: perl+telnet(with out Net::Telnet)
by marto (Cardinal) on Jul 14, 2010 at 11:22 UTC

    "First, Net::Telnet is part of the Perl core"

    I don't think it is: Core modules (n). See also perlfaq8 - Can I use perl to run a telnet or ftp session?:

    "Try the Net::FTP, TCP::Client, and Net::Telnet modules (available from CPAN). http://www.cpan.org/scripts/netstuff/telnet.emul.shar will also help for emulating the telnet protocol, but Net::Telnet is quite probably easier to use...."

      I don't think it is: Core modules.
      Indeed, this is strange. I first checked with Cygwin perl (5.10.0) and our Perl on Linux (5.10.1) and got the following pathes to Net::Telnet:

      /usr/lib/perl5/vendor_perl/5.10/Net/Telnet.pm /opt/perl_5.10.1/lib/Net/Telnet.pm
      But when I checked ActiveState Perl 5.10.0 on Windows, Net::Telnet was not included.

      -- 
      Ronald Fischer <ynnor@mm.st>