in reply to telnet to router
Now the question is how can I interactively enter carriage return "\r".
Not quite sure whether you want the paging to continue by literally entering CR on the terminal from which you ran the script (i.e. by interactively pressing ^M), or whether you want the script to automatically send CR. In case of the latter, have you tried put() after the waitfor()?
$telnet->put("\r");
|
|---|