in reply to Re^2: Need to replace string from external filein thread Need to replace string from external file
You had better read them in from that file, then. See Files and I/O in perlintro.