in reply to Re^2: return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")
in thread return value of net:telnet is wrong @exit_status = $telnet->cmd("echo $?")
I want to thanks BART for his suggestion in CB that the $ sign in "echo $?" should be escaped. This was actually the probelm. Now it has got solved.
Thank BART and thanks to all.