nimdokk has asked for the wisdom of the Perl Monks concerning the following question:
the code would look like:
open (EXTPROGRAM, "|$externalprogram") or die "Cannot fork to $externa +lprogram: $!"; print LOG <<EOJ; print EXTPROGRAM <<EOJ; (lines to send to external program) EOJ
If anyone has done this, might be helpful to here if this is even possible (don't want to resort to a shell script). I'm not at present able to actually test this out to see if it will work, although perl -c tells me that my syntax is clean :)
TIA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Feeding data to external program
by sauoq (Abbot) on Jan 24, 2003 at 21:42 UTC | |
|
Re: Feeding data to external program
by Mr. Muskrat (Canon) on Jan 24, 2003 at 22:08 UTC | |
by nimdokk (Vicar) on Jan 24, 2003 at 22:55 UTC | |
|
Re: Feeding data to external program
by poj (Abbot) on Jan 25, 2003 at 12:44 UTC | |
|
Re: Feeding data to external program
by Aristotle (Chancellor) on Jan 26, 2003 at 00:03 UTC |