in reply to change a line or string in file

perl -pi 's{\Qsystem("/prj/sw/tool")}{system("/prj/vlsi/toolsmodule")} +' test.txt