$bfquery= # this is a string in single quotes so nothing is interpolated 'query?relevance=%28names%20of%20it%2C%20ip%20addresses%20of%20it +%2C%20root%20server%20of%20it%2C%20operating%20systems%20of%20it%2C%20 +last%20report%20time%20of%20it%2C%20agent%20versions%20of%20it%2C%20va +lues%20of%20results%20from%20%28BES%20Property%20%22_SupportGroup%22% +29%20of%20it%29%20of%20bes%20computers%20whose%20%28%20name%20of%20it +%20as%20lowercase%20starts%20 +with%20%22' # add to this the value of this perl variable . $bfcomputer # and also this fixed string . '%22%29'; # end of concatenation This expression could not be parsed. sh: +%2C%20root%20server%20of%20it%2C%20operating%20systems%20of%20it%2C%20: not found sh: +last%20report%20time%20of%20it%2C%20agent%20versions%20of%20it%2C%20va: not found sh: +lues%20of%20results%20from%20%28BES%20Property%20%22_SupportGroup%22%: not found sh: +29%20of%20it%29%20of%20bes%20computers%20whose%20%28%20name%20of%20it: not found sh: +%20as%20lowercase%20starts%20: not found sh: +with%20%22server01%22%29: not found