I'm getting this error in my log:
Bad name after HTTP_CF_IPCOUNTRY'
Here's the section of the script it's flagging:
if (
$ENV{'HTTP_CF_IPCOUNTRY'} && # this is the line it's referencing
$ENV{'HTTP_CF_IPCOUNTRY'} ne 'US'
) { ... }
That's an exact copy-and-paste from my script, minus the comment of course.
I modified it to use exists() in case that was the problem, but I still get the same error:
if (
exists($ENV{'HTTP_CF_IPCOUNTRY'}) &&
$ENV{'HTTP_CF_IPCOUNTRY'} ne 'US'
) { ... }
Any idea what's causing the problem?