Thread Daten aus Server-Logfile erheben (Common Log Format) mit Suchmuster (9 answers)
Opened by mojo at 2008-10-30 00:01

pq
 2008-10-30 00:37
#115847 #115847
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
also wenn du die schleife schon hast:
Code (perl): (dl )
1
2
3
4
5
6
use Data::Dumper;
my %bytes;
while (...) { # deine schleife
    $bytes{ $ip } += $bytes;
}
print Dumper \%bytes;

das sollte ein anfang sein.
zum umgehen mit hashes und anderen strukturen:
http://p3rl.org/perldata
http://p3rl.org/perldsc
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Daten aus Server-Logfile erheben (Common Log Format) mit Suchmuster