http://www.perlmonks.org?node_id=542820


in reply to Specifying a shell for use with Backticks

First I want to thank everybody for the comments.

We know for certain that it is picking up the .cshrc settings because when we remove the PATH statements all of the alternate commands are working properly, and hence my assumption that they are using csh when backticking commands in perl. Unfortunately some of the people here running the perl scripts need to have both special PATH and ENVIRONMENT settings for the perl tools as well as other tools, and they both conflict with each other. It is very much a chicken and egg problem.

Since we are getting both sets of tools from a corporate source repository, and we really are not at liberty to make changes to them that is why I was just hoping for a quick one change of code to change the backtick behavior that I could send of to HQ and hope that it would get implemented some day. Even though using the IPC modules is a good alternative, I doubt I'll be able to get somebody to change the implementation under the hood of these scripts.

Again, thank you all for posting. Even though I cannot do much in this case I will definitely check out IPC::Open3 and IPC::Run at least for my own scripts. Given how touch and go the environment is here I don't want to be adding to this very huge mess.