panman has asked for the wisdom of the Perl Monks concerning the following question:
Guys, having a lot of trouble trying to import. Could really use some help. I am getting String found where operator expected at ./backup_db.pl line 1512, near "gzip "${FileName}"" (Do you need to predeclare gzip?) Am I doing this wrong?
if (eval { require IO::Compress::Gzip } ) { IO::Compress::Gzip->import ( qw (gzip $GzipError) ); $status = gzip "${FileName}" => "${FileName}.gz" or die "gzip failed: +$GzipError\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with import of module
by choroba (Cardinal) on Sep 21, 2015 at 16:18 UTC | |
by panman (Initiate) on Sep 21, 2015 at 21:02 UTC |