open (LOG, ">> $file"); print LOG "$msg :: $ENV{REMOTE_ADDR}\n"; print "\$msg is $msg"; close (LOG);