Thread Daten aus Server-Logfile erheben (Common Log Format) mit Suchmuster
(9 answers)
Opened by mojo at 2008-10-30 00:01
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: ![]() ![]() |