Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Just trying to TELNET

by zentara (Archbishop)
on Dec 26, 2012 at 12:24 UTC ( #1010372=note: print w/ replies, xml ) Need Help??


in reply to Just trying to TELNET

it states that I am Missing right curly bracket, but I do not even have a LEFT one????

Missing right curly or square bracket at

Yeah, the error message says that if you try to start an anonymous array grouping with a left bracket, the code needs a right bracket somewhere to close it off. You need to read between the lines in those error messages. :-) Here is your left bracket.

Port => '7300', [Errmode => 'die', Timeout => '9'); #My guess is that it should look like this: Port => '7300', [Errmode => 'die', Timeout => '9'] );
Also, I don't think you need single quotes around '7300' as 7300 is a number not a string.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re: Just trying to TELNET
Download Code
Re^2: Just trying to TELNET
by Anonymous Monk on Dec 31, 2012 at 22:01 UTC
    That solved the MISSING RIGHT CURLY BRACKET, but now it states that here is a syntax error near Port.
      use diagnostics;

      When the messages generated with use strict; use warnings; are beyond your understanding, add diagnostics to your arsenal. See also perldoc splain.

      OK got it to work with the following code:
      $telnet = new Net::Telnet ( Timeout=>10, Port=>7300, Errmode=>'die'); $telnet->open('localhost')
      Thanks for your help, it is appreciated

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (19)
As of 2015-07-07 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls