Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: IO::Pipe hangs

by BrowserUk (Pope)
on Sep 20, 2012 at 20:00 UTC ( #994746=note: print w/replies, xml ) Need Help??

in reply to Re^2: IO::Pipe hangs
in thread IO::Pipe hangs

Something wrong with Windows implementation?

More of a platform difference -- a thread used instead of a fork.

Use this instead:

use strict; use warnings; my $cmd = "tasklist"; my $pid = open PIPE, "-|", $cmd or die $!; while (my $line = <PIPE> ) { print $line; last if $line =~ /^smss/; } close PIPE;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994746]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2016-10-23 06:46 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (300 votes). Check out past polls.