Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 cooling their heels in the Monastery: (16)
As of 2015-07-29 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls