Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-08-29 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls