in reply to Looking for suggestion...

SuperSu if you provide an example of the kind of command executed on the switches (or is it always the same?) then perlmonks might provide other alternatives to the modules above. Most perlmonks have experience in the much wider technologies than just perl. Whilst this is a perl forum, if the problem is much better solved another way, someone will most likely point it out.
Case in point if you're actually after some metrics from network devices, they're usually available via SNMP protocol, which is (usually) the best technology for network metrics gathering.
we don't have ALL the answers, but we can try.
the hardest line to type correctly is: stty erase ^H