in reply to Perlnet Telnet issue with ->
The solution is to waitfor something else. If there are other characters that always appear in the system prompt, include them in the waitfor regex.
A fragile solution is to waitfor a > not preceeded by a dash, as in the info command's output. A regex for this:
# match > at the beginning of a line or not preceeded by - @infosyst=$telnet->waitfor('/(\A|[^-])>/');
|
|---|