if((@output = $telnetObj->cmd("$fileAry[$i]"))) { #works ! # if((@output = $telnetObj->cmd(String => "$fileAry[$i]", Timeout => 120))) { # seems to hang after the script completes