The response is too big, so i just copied the extract of the response . I have to capture the date 2009-06-16 00:26:02 using perl regualr expression, whenever the status changes from AAA to BBB. In the whole response status AAA is changed to BBB only once.
i tried with $htmlResponse = ~ m/^(.*)<td>AAA<\/td><td>BBB<\/td><\/tr>/i
Looks like since they HTML response is multiple lines, your regex is probably not working because it isn't looking for the newline characters.
You could either try to put in a match for the newlines (\n) or add the 's' modifier with your 'i' modifier at the end, then use the 'match anything' . to catch the newline. Check out this tutorial, it explains this: [anaesthetist.com...]