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

Re^4: Stop Command In Perl

by monsoon (Pilgrim)
on Jul 12, 2012 at 18:40 UTC ( #981472=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e "$pid = open PIPE, '-|', 'echo one two';$/=' '; while (<PIPE>)
    +{ print; kill 2, $pid}"
    
  2. or download this
    perl -e "$pid = open PIPE, '-|', 'echo one two';$/=' '; while (<PIPE>)
    +{ print; close PIPE}"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-12-20 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls