rajaman has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am trying to call a shell script from my perl program, like:
my @array=qx( ./shellscript.sh <<< " string argument passed ");
But I get the following error:
sh: 1: Syntax error: redirection unexpected
However, when I run the shellscript directly on the command line as (./shellscript.sh <<< " string argument passed "), it works fine.
Any hints?
Thank you.
I am trying to call a shell script from my perl program, like:
my @array=qx( ./shellscript.sh <<< " string argument passed ");
But I get the following error:
sh: 1: Syntax error: redirection unexpected
However, when I run the shellscript directly on the command line as (./shellscript.sh <<< " string argument passed "), it works fine.
Any hints?
Thank you.
Back to
Seekers of Perl Wisdom