Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Net::Telnet - open session if not already opened

by isaac737 (Initiate)
on Sep 09, 2011 at 23:45 UTC ( [id://925172]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::Telnet - open session if not already opened
in thread Net::Telnet - open session if not already opened

Dasgar! Thanks so much for this solution. I have beta tested it and it seems to be just what we were after.

The key line is seeing whether or not the object is instantiated or not and I wasn't quite sure how to do that. if (!exists $t{$router}) { seems to do the trick. Oh and I do run with perl -w but I don't use strict because I can't see the purpose of it and it makes writing perl a pain. It has something to do with scope right?

Anyhow, cheers! - Jg

  • Comment on Re^2: Net::Telnet - open session if not already opened

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found