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