in reply to modifying multiple files

try it with readdir
like that:
opendir DIR, "dirname"; @files = readdir DIR; closedir DIR; for $file (@files) { do whatever you want ... }
Remember to throw away files you don't need, or just use the files you are looking for. i.e.:
for $file (@files) { next if $file =~ /^.+/; }
or
for $file (@files) { next if $file !~ /\.whatever/; do your stuff here }
----------------------------------- --the good, the bad and the physi-- -----------------------------------