Thread Lesen log file (6 answers)
Opened by lddzjwwy at 2013-05-27 10:26

Muffi
 2013-05-27 11:34
#167841 #167841
User since
2012-07-18
1465 Artikel
BenutzerIn
[default_avatar]
Ah, also kein start + ende command.

sowas?
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
my %result = ();
my $command = '';
for my $line (@d) {
        if ($line =~ /^<(.+)/) {
                $command = $1;
        }
        
        $result{$command} .= $line;
}
1 + 1 = 10

View full thread Lesen log file