Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I can't unzip a file. I am trying this code
The directory name is a directory in the current working directory in the format "dirname" (i.e. there are no dots are forward slashes in the name) and the file is called tablename.sql.gz in that directory. I am not getting any error message except for this: Use of uninitialized value $GunzipError in concatenation (.) or string at load_tables.pl line 67. I get no error message from thismy $unzipped = new IO::Uncompress::Gunzip $dirname."/".$table.".sq +l.gz" or die "IO::Uncompress::Gunzip failed: $GunzipError\n";
I have included the module use IO::Uncompress::Gunzip;my $unzipped = new IO::Uncompress::Gunzip $dirname +."/".$table.".sql.gz" or die "$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: can't unzip file
by MidLifeXis (Monsignor) on Jan 28, 2011 at 17:24 UTC | |
by Anonymous Monk on Jan 28, 2011 at 19:59 UTC | |
by Anonymous Monk on Jan 28, 2011 at 20:07 UTC |