readdir() returns just the filename. You need to chdir() to the appropriate directory, or prepend the directory to the filename. Ronald # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org