matze77 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
I am a little stuck, maybe you could help ...
I have to parse a logfile on a windows machine which contains (at the last line)
$string as mentioned below, i want to match against this last line and $string should contain the actual date ...
To simplify i only want to check for $date and "Ende" on this line ...my $string='19.09.2011 ======== Ende Update'; my $date = `Date /T`; my $regex ="$date Ende ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse Log File for Date and string?
by Caio (Acolyte) on Sep 19, 2011 at 10:27 UTC | |
by matze77 (Friar) on Sep 19, 2011 at 11:51 UTC | |
by Mr. Muskrat (Canon) on Sep 19, 2011 at 17:57 UTC | |
|
Re: Parse Log File for Date and string?
by RichardK (Parson) on Sep 19, 2011 at 10:36 UTC | |
|
Re: Parse Log File for Date and string?
by norbert.csongradi (Beadle) on Sep 19, 2011 at 09:58 UTC |