ERDC has asked for the wisdom of the Perl Monks concerning the following question:
This is the best I got so far:
##########!c:\strawberry\perl\bin\perl -w use CGI::Carp qw( fatalsToBrowser ); use Net::Telnet (); print "Content-type:text/html\r\n\r\n"; $telnet = new Net::Telnet; $telnet->open([Host => 'localhost',] [Port => '7300',] [[Errmode => 'd +ie',] [Timeout => '9']); $telnet->waitfor('/Please enter your callsign: $/i');
but I get an error of : syntax error at C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/telnet,pl line 9, near "] ["
Missing right curly or square bracket at C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/telnet,pl line 20, at end of line
##########
it states that I am Missing right curly bracket, but I do not even have a LEFT one????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Just trying to TELNET
by NetWallah (Canon) on Dec 26, 2012 at 04:29 UTC | |
|
Re: Just trying to TELNET
by keszler (Priest) on Dec 26, 2012 at 05:04 UTC | |
|
Re: Just trying to TELNET
by zentara (Cardinal) on Dec 26, 2012 at 12:24 UTC | |
by Anonymous Monk on Dec 31, 2012 at 22:01 UTC | |
by ww (Archbishop) on Dec 31, 2012 at 22:44 UTC | |
by ERDC (Initiate) on Dec 31, 2012 at 22:45 UTC |