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
In reply to Re^2: Net::Telnet - open session if not already opened
by isaac737
in thread Net::Telnet - open session if not already opened
by isaac737
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |