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