in reply to Output to File from Telnet

You're using wordpad aren't you?

In perl, backticks qx aka `` are used to execute a program and capture the output, observe

$ perl -e " warn `Can’t enable:` " 'Can’t' is not recognized as an internal or external command, operable program or batch file. Warning: something's wrong at -e line 1.
Also, you need to get yourself a good code [editor/IDE, gvim_portable, http://padre.perlide.org/,

Also, self documenting variable names are better than comments

my $RouterIP; my $RouterUsername; my $RouterPassword; my $RouterPasswordEnabled;

Replies are listed 'Best First'.
Re^2: Output to File from Telnet
by kiwi_chris (Initiate) on Feb 25, 2011 at 02:53 UTC

    I have installed Strawberry Padre and it is great thanks!