in reply to backticks - bash instead of sh

This is documented, see perlop on qx. If you don't want /bin/sh, use system or IPC::Open2 or IPC::Open3 or explicitly invoke /bin/bash or whatever shell you want.

Replies are listed 'Best First'.
Re^2: backticks - bash instead of sh
by daverave (Scribe) on Jul 30, 2010 at 18:16 UTC
    The command I'm trying to run is paste filename <(cut -d \" \" -f 2 filename2 | grep -v mean) >> filename3

    Even if I begin with `/bin/bash ...` I get "sh: Syntax error: "(" unexpected".

      Write it in Perl, or just use a bash file and call it through perl.

      I don't think this is a hard job to do in perl.

      You'll have to read tow files and output them in 1 file... and this has been done many times before over here ... use the search button in the top of the site to look that up