ValerieLeeuwen
Programmer
Hello val here, I wanted to start with my first perl program but it doesn't work :-(
think i'm doing it all wrong, could someone please explain or point me in the right direction? thanks Valerie
Code:
#!/usr/bin/perl
my $valid_ip = 10.10.10.10;
my $ip_container = $ENV{REMOTE_ADDR};
if ($ip_container == $valid_ip)
{
print "Valid ip";
}
else
{
print "Not a valid ip";
}
think i'm doing it all wrong, could someone please explain or point me in the right direction? thanks Valerie