Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Problem initializing an object as an instant variable

by muba (Priest)
on Jun 27, 2012 at 02:21 UTC ( #978545=note: print w/ replies, xml ) Need Help??


in reply to Problem initializing an object as an instant variable

Do you get any other error messages? What do they tell you?

Do you use strict; and use warnings;? Are their complaints in any way helpful?

What is CLIENT in $self -> {'full_info'} = CLIENT . ",," . $ip . ",TIMEOUT";?

Does the Net::Telnet constructor take errmode as an argument? The documentation says Errmode (mind the capital initial). How flexible is the module about that sort of things? Were there no error messages complaining about this?

Have you tried to rewrite it as $self -> {'telnetConn'} => Net::Telnet->new(...);?


Comment on Re: Problem initializing an object as an instant variable
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-12-18 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (51 votes), past polls