#!/usr/local/bin/perl -- use CGI::Carp qw(fatalsToBrowser); $|=1; $RMIP=$ENV{'REMOTE_ADDR'}; $RUAG=$ENV{'HTTP_USER_AGENT'}; -----(later on in the code)----- # RECORD USERS IP ADDRESSES open (USERIP, ">>/usr/local/www/htdocs/classicappliances/NEW DISCUSS/PROFILES/USER-IP-FILE.txt"); flock (USERIP, 2); print USERIP "$NAME_CHOICE--REMOTE ADDR-$RMIP---user agent-$RUAG\n"; close (USERIP); flock (USERIP, 8); #### Unimatic1140--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90) spambdamn--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.75 [en] (Windows NT 5.0; U) jasonl--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) earthling177--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC) angus--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; MSN 6.1; MSNbMSFT; MSNmen-us; MSNc11) whirlpoolbklyn--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 95) trainguy--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 98; Win 9x 4.90)