in reply to Issue with Archive::Tar
The write method writes the in-memory archive to disk. You haven't added the files to it yet, so it is writing an empty archive to disk. Reverse your last two steps.