http://www.perlmonks.org?node_id=978545


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(...);?