- or download this
use POSIX;
my $date_for_logfile = strftime( "%e %B %C%y, %T", localtime);
- or download this
my $ts = scalar localtime;
- or download this
my $ip = '127.0.0.1';
print ip_error() unless check_ip($ENV{REMOTE_ADDR},$ip);
- or download this
sub check_ip {
my ($ip1,$ip2) = @_;
return $ip1 eq $ip2;
}
- or download this
sub ip_error {
return header,
...
b('Invalid ip-number'),
;
}
- or download this
print ip_error() unless $ENV{REMOTE_ADDR} eq $ip;
- or download this
}
}