in reply to how can i unzip a file

You could have a look at Archive::Zip which will do what you want.

Cheers,

JohnGG