I want to do a substitution like this: s/#4/Blah hash $288/gi In perl. So, the raw file looks like this: End of the line #4 After substitution: End of the line Blah hash The $288 is dropped, I know I can escape the $288, with \$288, but I am wondering if there is a more elegant way? -- Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700 http://www.mn-linux.org | Fax : (952)943-8500 Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9