in reply to Is it possible to use the open( ) function with piped unix commands?
and also, you need to explicitly close the LIST handle to makeopen(LIST, "| sort -n| uniq");
output:perl -e'open F,"|sort|uniq"; print F "aa\n","bb\n","aa\n","bb\n"; clos +e F'
aa bb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to use the open( ) function with piped unix commands?
by runrig (Abbot) on Jul 19, 2007 at 00:01 UTC | |
|
Re^2: Is it possible to use the open( ) function with piped unix commands?
by ikegami (Patriarch) on Jul 19, 2007 at 14:44 UTC | |
by Joost (Canon) on Jul 19, 2007 at 15:31 UTC | |
by shaolin (Initiate) on Jul 19, 2007 at 19:43 UTC |