$logger->info("saving the zone"); ($out,$err) = $ssh->capture2("cfgsave"); $ssh->error and die "remote find command failed:$!" . $ssh->error; $logger->info("config saved");