in reply to How do I read the contents of each file in a directory?

The names that come back from readdir are the basename only. You'll have to prepend the directory name to get a good path. Or just use glob, as it's far easier for the beginner.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.