on Mon, 06 May 2002 11:01:54 GMT, [EMAIL PROTECTED] (En
Prashant) wrote:
>
> I haven't a single line .This is a log file which has more than
> thousands of line and not each data is of one line it is of two or
> three lines.The data is just like
This is hard to believe. Are you sure your text-
I haven't a single line .This is a log file which has more than thousands
of line and not each data is of one line it is of two or three lines.The
data is just like
193.9.200.127,prashant , , y,12/04/02,12:09:05, ,http, ,
http://rediffmail.com, , , ,. This line has 23 fields and it may be
possib
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 PROTECT
on Mon, 06 May 2002 09:57:02 GMT, [EMAIL PROTECTED] (En
Prashant) 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,
Take a look at
perldoc -f open
perldoc -f split
[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
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 t