I am trying to write a script that will parse the files and directories of a given directory. I want to determine the file name, type and size at a minimum. This seems like it should be a rather simple thing but I am having no luck getting anything to work. The built-in function 'readdir' doesn't seem to give me the information I need and I can't seem to get other things like File::Listing to work. Can someone give me a simple command that will return this information given a single file name? I can handle the looping myself. Thanks.