http://www.perlmonks.org?node_id=917538


in reply to sql entry of file name n size

Just a quick thought in addition to Corion's answer: Once you have read the directory and its entries, you maybe want to have a look at the File::Spec module to create the file paths and the -s operator to determine the file sizes.