Re: Weird problem with a regexp.

2002-09-17 Thread david
Steve wrote: > > > Oops, that if should be which is still giving me the error: > if ($line =~ /^(\d\d-\d\d-\d{4}\s+\d\d:\d\d:\d\d\.\d\d).+Session > oh, another problem is that if you are using: mm-dd- hh:mm:ss directly to Date::Manip's ParseDate() function, it won't work. if you have sa

Re: Weird problem with a regexp.

2002-09-17 Thread david
Steve wrote: > > > Oops, that if should be which is still giving me the error: > if ($line =~ /^(\d\d-\d\d-\d{4}\s+\d\d:\d\d:\d\d\.\d\d).+Session > i don't see why your expression won't work. prehaps it's something else that isn't working... david -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Weird problem with a regexp.

2002-09-17 Thread Steve
At 12:54 PM 9/17/02 -0700, you wrote: >Steve wrote: > > > I have this snippet of code which works fine. $start_time has MM-DD- > > HH:MM:SS.MM which is what I want. > > > > # > > > > if ($line =~ /^(\d\d-\d\d-\d{4}\s+\d\d:\d\d:\d\d\.\d\d).+Connection > > Establ

Re: Weird problem with a regexp.

2002-09-17 Thread david
Steve wrote: > I have this snippet of code which works fine. $start_time has MM-DD- > HH:MM:SS.MM which is what I want. > > # > > if ($line =~ /^(\d\d-\d\d-\d{4}\s+\d\d:\d\d:\d\d\.\d\d).+Connection > Established.+(\d\d\d\d\d)/i) { > $start_time = $1