in reply to How to copy files to a new directory, and invoke gzip from Perl on Win32?

Gzip only zips bytestreams. That means that you normally only gzip a single file. On unix, a common method to package directories is to create a tar archive and gzip that.

Assuming you have tar and gzip installed, the process is the same for unix and windows:

system("tar c directoryname|gzip >archive.tar.gz") && die "Error archi +ving directory";
As for copying files, take a look at the standard File::Copy module.