in reply to gunzip failure in perl script

You need a write permission to the directory where the script is going to create the files.