in reply to output from an external program
rather thanopen EXT,"|extprog"; while (<>)
When I experimented against open EXT,"|ls" the first version gave the directory listing, but then kept waiting for input from STDIN, until I gave ctrl-d, whereas the second printed the file listings and quit out, which is (naively?) the behavior I expect.open EXT,"|extprog"; while (<EXT>)
Just curious!
Also, thanks for updating with your final solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: output from an external program
by olecs (Scribe) on Dec 08, 2005 at 09:43 UTC |