following your sample If you have only one line in the text file you can do as follow:
($ip,$name,$tuff,$stuff,$fecha,$time_log,$junk) = split /,/,$textfile; print 'The IP address:".$ip."\n"; print "The name:".$name."\n"; ......... ..... exit; OK , I hope it helps you Bernie Diaz [EMAIL PROTECTED] wrote: >I had been assigned a work of extracting data from a text file.The text >file has these datas >193.9.200.123,prashant , ,y,22/04/02,12:09:43, , , >,http://rediffmail.com,,,,,,,,. >I have to fetch IP address,uesr name,date,time of log on,site or page >visited.It is the log file created by proxy server to take care about user >onit. >If u would help me i will be thankful to u. >Prashant Mathur > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]