in reply to open(TO, "|-") is a bad file name?
For multiple forks, you should be able to just put a for my $childnum (1..3) { ... } around your FORK block and have conditional code to do different things based on $childnum in the child section.$ c:/perl/bin/perl -we'select((select(TO_CHILD), $| = 1))[0]);' Not enough arguments for select system call at -e line 1, near "))" syntax error at -e line 1, near ")[" Execution of -e aborted due to compilation errors. $ c:/perl/bin/perl -we'select((select(TO_CHILD), ($| = 1))[0]);' Name "main::TO_CHILD" used only once: possible typo at -e line 1.
Don't know anything about |- on windows (other than that it works with cygwin :), sorry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: open(TO, "|-") is a bad file name?
by SavannahLion (Pilgrim) on Feb 24, 2004 at 05:56 UTC | |
by ysth (Canon) on Feb 24, 2004 at 16:34 UTC |