M
Martin L.
I a trying to debug a free script that allows me to place counters on
pages throught my domain. It operates using SSI's. There are no fatal
errors. The results should be a summary of my counter logs for each
page that has a counter the no log file names or contents appear.
There is one function #### @files = ('logs/*.log'); ##### I am not
familiar with and a look through PERLFUNC did not turn up anything.
Here is the context It is found in
####begin snippet
$opt = "$ENV{ 'QUERY_STRING' }";
$count_page = "$ENV{ 'QUERY_STRING' }";
if ( $opt eq "stats" ) {
@files = ('logs/*.log');
&get_files;
&CalculateStats }
####end snippet
At this point the script should be generating a list of counter log
files so that is what I am assuming this line does. I understand the
"*.logs" portion is a wild card for all files with the "log" extension
but the preceeding "logs/" I have not seen before. It is the name of
the log directory but it has not been assigned to a FILE_HANDLE
anywhere and the only other reference is as a comparison string in an
unrelated section of the script.
The page returned from the script would indicate that the "@files"
variable contained no data.
Thanks
Martin L.
pages throught my domain. It operates using SSI's. There are no fatal
errors. The results should be a summary of my counter logs for each
page that has a counter the no log file names or contents appear.
There is one function #### @files = ('logs/*.log'); ##### I am not
familiar with and a look through PERLFUNC did not turn up anything.
Here is the context It is found in
####begin snippet
$opt = "$ENV{ 'QUERY_STRING' }";
$count_page = "$ENV{ 'QUERY_STRING' }";
if ( $opt eq "stats" ) {
@files = ('logs/*.log');
&get_files;
&CalculateStats }
####end snippet
At this point the script should be generating a list of counter log
files so that is what I am assuming this line does. I understand the
"*.logs" portion is a wild card for all files with the "log" extension
but the preceeding "logs/" I have not seen before. It is the name of
the log directory but it has not been assigned to a FILE_HANDLE
anywhere and the only other reference is as a comparison string in an
unrelated section of the script.
The page returned from the script would indicate that the "@files"
variable contained no data.
Thanks
Martin L.