sonicscott9041 has asked for the wisdom of the Perl Monks concerning the following question:
This should capture each screen of the report to a file and press ENTER until it sees 'REPORT FINISHED'. I suspect I may not be evaluating this correctly. Thanksuntil ($t->waitfor('/REPORT FINISHED/') == 1) { ($op1) = $t->waitfor('/PRESS RETURN/'); print NVFILE $op1; $t->print(""); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Telnet waitfor loop
by ssandv (Hermit) on Aug 17, 2009 at 22:17 UTC | |
by sonicscott9041 (Novice) on Aug 20, 2009 at 16:27 UTC | |
by sonicscott9041 (Novice) on Aug 20, 2009 at 20:27 UTC | |
by ssandv (Hermit) on Aug 20, 2009 at 21:15 UTC |