in reply to Re: log parser
in thread log parser
#!/usr/bin/perl use strict; use warnings; print "searching using regexp...\n"; my $a = "start"; open(my $in, "<", "DirectX.log") or die "Can't open DirectX.log: $! +"; #print $a; while (<$in>) { # assigns each line in turn to $_ #print "Just read in this line: $_"; $a = $a . $_; } if ($a =~ /eroare+/) { print "found eroare\n"; } close $in or die "$in: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: log parser
by hdb (Monsignor) on Jun 17, 2013 at 10:59 UTC | |
|
Re^3: log parser
by 2teez (Vicar) on Jun 17, 2013 at 11:04 UTC | |
|
Re^3: log parser
by Anonymous Monk on Jun 17, 2013 at 10:59 UTC |