perl -pe 's/XYZ/ABC/' file1.pl > file2.pl [download]
In reply to Re: Search & Replace by fuzzyping in thread Search & Replace by yhabibzai