in reply to replacing text in multiple files
Use <> (instead of <FILE1>) and specify the files as command line arguments (or manually put them in @ARGV).