in reply to Re^2: Telnet Error - Vasanth
in thread Telnet Error - Vasanth

if the command output has empty lines, it is failing

What is the value of $fields[4] and/or $Eleprompt and/or $match?