in reply to Re^2: Issue with Net::telnet
in thread Issue with Net::telnet

My problem is solved. I used Expect module to do the job and that worked flawlessly.