P is for Practical | |
PerlMonks |
Re^2: Net::Telnet - open session if not already openedby isaac737 (Initiate) |
on Sep 09, 2011 at 23:45 UTC ( [id://925172]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|