in reply to All files in dir to Storable.pm data

If you're going to use File::Slurp, then why not get the directory entries with read_dir and write the file with write_file?