Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
When I call this script, I get the following error: Software error: Global symbol "$r" requires explicit package name at unzipfiles.cgi line 10. Global symbol "$r" requires explicit package name at unzipfiles.cgi line 11. Global symbol "$r" requires explicit package name at unzipfiles.cgi line 16. Execution of unzipfiles.cgi aborted due to compilation errors. What do I have configured incorrectly in this script to make it do what I want it to do. This zipped file is put up three times weekly and is 3Megs in size. It is always named _ubl.zip and it always needs to unzip to my LeagueSite directory. My email is volunteer1967@hotmail.com and I will check back on this site as well. Thanks in advance, Mark Cooley#!/usr/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); my $Verzeichnis = "/home/wwwubl/public_html/LeagueSite/"; my $zipfile = $Verzeichnis . "_ubl.zip"; if (-e $zipfile) { $r = system("unzip -o -q -C $zipfile -d $Verzeichnis"); if ($r==0) { print "Success!\n"; unlink($zipfile); } else { print "Error " . $r . "\n"; } }
|
---|