) { push( @access, $_ ) unless m/^; }
close( FH );
$num = $& if $access[0] =~ m/^\d+/;
}
pop(@access) while @access > 9;
$num = sprintf( "%04d", $num + 1 );
if ( open( FH, ">$file" ) ) {
print FH "NAMA IP\n";
print FH "\n\n";
print FH "$num $date IP = $ret\t$ENV{'HTTP_USER_AGENT'}\n";
print FH @access;
print FH "\n\n";
close( FH );
}