Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-10-17 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (224 votes). Check out past polls.

    Notices?