http://qs321.pair.com?node_id=1200296

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.