I run a tiny little Perl script on my site that I bodged up by myself. The script runs fine, but I get the following line in my servers error logs
The script looks like this:
I know I'm missing something obvious, but I can't work out what - any ideas?
Cheers
Tama
Code:
Useless use of string in void context at linklog.cgi line 10.
The script looks like this:
Code:
#!/usr/bin/perl -w
#use strict;
#Thanks to Nuxy from [URL unfurl="true"]http://www.tek-tips.com[/URL] for the base of this script
my $logfile = "/home/vorb/[URL unfurl="true"]www/link/linklog.csv";[/URL]
my $time = gmtime;
open (FILE, ">>$logfile") || "can't open $logfile";
print FILE ("$ENV{'QUERY_STRING'},$ENV{'HTTP_REFERER'},$time\n");
close (FILE);
exit;
I know I'm missing something obvious, but I can't work out what - any ideas?
Cheers
Tama