in reply to Re: Child Net::SSH2 object trouble
in thread Child Net::SSH2 object trouble
Thanks dasgar!
You inadvertently forced me to reveal my XY Problem. I have a script that does Net::Telnet::Cisco and I'm trying to add SSH access. While I can get Net::SSH2 to connect to a Cisco router and do what I want, the methods / accessors are all different than in N::T::C, forcing me to have two separate subs rather than an if/then creating a Telnet or SSH object. I thought I'd write a Net::SSH2::Cisco with a similar interface to N::T::C to help - thus my question about adding (N::T::C-like) attributes to the Net::SSH2 returned object.
Control::CLI looks to have taken the other approach by creating a parent module for both (and more). I'll give it a look!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Child Net::SSH2 object trouble
by salva (Canon) on Jun 30, 2015 at 06:54 UTC |