Here:
You would open the directory, read through all the files, then open each one at a time like so:
[tt]
opendir(DIR,"$root/cgi-bin/trading"

|| die("Failed to open dir: $!"

;
while ($file = readdir(DIR)) {
if (($file eq "."

|| ($file eq ".."

) {
# do nothing
} else {
open(FILE,">>$root/cgi-bin/trading/$file"

|| die("Failed to open file: $!"

;
@data = <FILE>;
# do what you want to do with the file
close(FILE);
}
}
closedir(DIR);
[/tt]
Thats how I would do it.
Hope this helps.
-Vic vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====