Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
are there any flaws in the code above?$File = $ENV{'QUERY_STRING'}; if ($File =~ /\//) { ($File) = $File =~ /^.*\/([^\/]+)$/g; } $DownloadFile = "$DownloadFileDir/$File"; open (CNT,"+<$Counter") || &endIt; flock (CNT,2); seek (CNT,0,0); @infile = <CNT>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: download counter using CGI.pm
by blakem (Monsignor) on Sep 12, 2001 at 23:51 UTC |