in reply to Re: Is it possible to use the open( ) function with piped unix commands?
in thread Is it possible to use the open( ) function with piped unix commands?
On perl's side, closing the file handle flushes the data and releases the process (does a waitpid).
On sort's side, the closed input tells sort it's done receiving data so it can proceed to sort and print it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is it possible to use the open( ) function with piped unix commands?
by Joost (Canon) on Jul 19, 2007 at 15:31 UTC | |
by shaolin (Initiate) on Jul 19, 2007 at 19:43 UTC |