in reply to Search & Replace

perl -pe 's/XYZ/ABC/' file1.pl > file2.pl
-fp