Hi,
open(MYINPUTFILE, "<access.log");
while(<MYINPUTFILE>)
{
# Good practice to store $_ value because # subsequent operations may change it.
my($line) = $_;
# Good practice to always strip the trailing # newline from the line.
chomp($line);
my($time, $elapsed, $remotehost, $csp, $bytes, $method, $url, $user) = split(' ', $line);
# Print the line to the screen and add a newline
print "$user - $bytes\n";
}
ACCESS.LOG is a text file having details of time,elapsed,remotehost,bytes,method,url and the userid .
From the access file,i want mainly the userid and the bytes and i printing that value
print "$user - $bytes\n";
From upto its ok.
I want to store millions of userid($user) values and their corresonding bytes($bytes) values into an dynamic array.
How i can store this values into an dynamic array?
please help me
with regards,
santhanalakshmi