Galen has asked for the wisdom of the Perl Monks concerning the following question:
$connect = new Net::Telnet (Telnetmode => 0); $connect->open(Host => $hostname, Port => $port); $connect->print("$rtrv"); (@prematch,$match) = $connect->waitfor('/COMPLD/'); @rlines = $connect->getlines; @alines = $connect->getlines; @blines = $connect->getlines; print @rlines; print "\nShoud have all printed there...\n\n"; print @alines; print "\nAnd that was the second array\n\n"; print @blines; print "\n"; print "\nThat is the last of it\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I tell getlines to get ALL the data?
by chipmunk (Parson) on Mar 22, 2001 at 02:13 UTC | |
by Galen (Beadle) on Mar 22, 2001 at 04:52 UTC | |
by chipmunk (Parson) on Mar 22, 2001 at 10:12 UTC | |
by Galen (Beadle) on Mar 22, 2001 at 20:35 UTC | |
by merlyn (Sage) on Mar 22, 2001 at 05:09 UTC |