Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Surprised by limitation of Win32 "system(1" hack

by BrowserUk (Patriarch)
on Jun 24, 2015 at 12:24 UTC ( [id://1131796]=note: print w/replies, xml ) Need Help??


in reply to Surprised by limitation of Win32 "system(1" hack

though if I need to go to the bother of calling waitpid etc. I will probably just bite the bullet and use Win32::Process instead.

Why? Why is "the bother of calling waitpid" so onerous?

This just ran to completion in 10 seconds or so(Note:1000):

use strict; use warnings; $| = 1; my $cmd = qq{$^X -le "print 'pid=', \$\$"}; for my $i ( 1 .. 1000 ) { print "$i: run $cmd ---------\n"; my $rc = system( 1, $cmd ); waitpid( $rc, 0 ); }

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.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found