Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Reading partial lines/strings from a pipe

by slightly72 (Initiate)
on Oct 10, 2007 at 17:46 UTC ( #644041=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IO::Handle;<br>
    my ($wrt, $rdr) = (IO::Handle->new(), IO::Handle->new());
    my $procid = open2($wrt, $rdr, $server_command_line);
    
  2. or download this
    while (1) {
      if (there_is_something_to_read($rdr)) {
        $reply = get_everything_from_the_pipe($rdr);
        last;
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://644041]
Approved by Sidhekin
help
Chatterbox?
marioroy running LWP::Simple on Cygwin in parallel completes in 1 second. Pre-loading essential modules is necessary only on MSWin32 Re: Crash with ForkManager on Windows.
marioroy LWP::Simple works best with Perl v5.26 on Windows. Any Perl version is fine on Cygwin and Unix.
[karlgoethebier]: Hi mario
[marioroy]: Hi karlgoethebier.
[karlgoethebier]: "Long time No See" ;-)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-09-23 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?