http://www.perlmonks.org?node_id=1012600

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am actually doing a script to unzip .gz files .The script is given below

use IO::Uncompress::Gunzip qw(gunzip $GunzipError); $input="file.dat.gz"; $output="file.dat"; if (-e $input) { gunzip $input => $output or die "gunzip failed: $GunzipError for $output\n"; }

This will work if the input and code are in same location.My requirement is my script should be in "C" drive and input should be in D drive.Can anyone help ?