Hello,
There is an operation which can be performed at the shell prompt the
following way:
some_prg [some_inputfile_1] [some_inputfile_2] > result_file
However, before "some_prg" can use files, they have to be converted and it
can be done like this:
some_prg <(convert inputfile_1) <(convert inputfile_2) > result_file
It works perfectly at shell prompt.
I would like to start the above sequence in perl script using "open"
command:
open(SOME_OUTPUT,"some_prg <(convert inputfile_1) <(convert inputfile_2) |
");
When I try to run the script and capture SOME_OUTPUT, I get the following
error:
sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `some_prg <(convert file_1) <(convert file_2)'
Is there any way to solve that syntax error without writing extra shell
scripts as I would like to have all the code in a single perl script?
Thank you for any help.
Pawel Banys