in reply to Opening, and editing multiple files?

A far simpler way would be from the command line. A Bash script to do it would look like this...
$ cd $1 $ perl -i -w script.pl *.$2
See perlrun for details on the command line switches. You can include an extension after -i and it will keep backups for you, as in -i.bak for instance.