in reply to Re^3: Trying to connect to MSSQL and return result. Script hangs indefinitely.
in thread Trying to connect to MSSQL and return result. Script hangs indefinitely.

Hm, same here, although it's bash that's hanging waiting for input, not Perl or the backticks, as in the OP.

$ perl -wMstrict print qx|printf "%b" "this is a q\'uot\'ed test"|, "\n"; print qx|printf "%b" "this is a q\'uot\'ed test|; print qx|printf "%b" "this is a q\'uot'ed test|; __END__ this is a q'uot'ed test sh: Syntax error: Unterminated quoted string sh: Syntax error: Unterminated quoted string
  • Comment on Re^4: Trying to connect to MSSQL and return result. Script hangs indefinitely.
  • Download Code

Replies are listed 'Best First'.
Re^5: Trying to connect to MSSQL and return result. Script hangs indefinitely.
by NetWallah (Canon) on Aug 07, 2014 at 00:50 UTC
    Ok - agreed - I cannot get bash to hang with a perl script that has backticks.

            Profanity is the one language all programmers know best.