in reply to Prompt help with Net::Telnet

The dots you see on the right, in the ASCII representation, are not literal dots. A dot in that context stands for a general unprintable character. This is an ancient convention still in use today...

If you see on the left the corresponding ASCII code, it is hexadecimal 1B, which is ESC (Escape). This means it should be \e and not \. in your regular expression.

Then, if you want to match the prompt exactly as it is, spaces should be matched with an actual space, not with \s which also matches tabs for example.

Finally, if things get tough, you may want to have a look at Expect on CPAN.

Happy matching!

-- TMTOWTDI