in reply to Net::Telent - How to get the prompt displayed after login using telnet?

Hello, If I understand your question correctly. You want to see what prompt is being returned?

Take a look in Net::Telnet see method: last_prompt
$string = $obj->last_prompt; $prev = $obj->last_prompt($string);
Sometimes it just easier to set your own prompt. That way you always know what's being returned.
Look at Net::Telnet --> method: prompt

$host->login( $username, $password ); my $prompt = "_MYPROMPT_"; $host->prompt("/$prompt\$/"); $host->cmd("prompt = $prompt");


regexes


-------------------------
Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race.
-- Calvin Coolidge, 30th President of the USA.