How can I screen-scrape output from telnet in Perl?
问题 I can setup a telnet connection in Perl no problems, and have just discovered Curses, and am wondering if I can use the two together to scrape the output from the telnet session. I can view on a row, column basis the contents of STDOUT using the simple script below: use Curses; my $win = new Curses; $win->addstr(10, 10, 'foo'); $win->refresh; my $thischar=$win->inch(10,10); print "Char $thischar\n"; And using the below I can open a telnet connection and send \ receive commands with no problem