ok, that shouldn't be that hard if every line is in the same format.

open FILE,"somefile.log";
while (<FILE>) {
    $string = $_;
    $string =~ s/\[(\d{2})\/(\w{3})\/(\d{4}):(\d{2}):(\d{2}):(\d{2})\+0000\]//;
}
close FILE;


$1 is the day, $2 the month
$3 the year , $4 the hour
$5 the minutes, $6 the seconds

again untested code, but something like that should work


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to