Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

open (to read) and kill a pipe to a pipe

by Anonymous Monk
on Aug 26, 2010 at 20:19 UTC ( [id://857561]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $pid = open (INPUT, "mycommand $somefile |") or die ...;
    while (<INPUT>) {
    ...
      }
    }
    close INPUT;
    
  2. or download this
    $pid = open (INPUT, "gzip -dc $somegzfile | mycommand |") or die ...;
    while (<INPUT>) {
    ...
      }
    }
    close INPUT;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-24 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found