in reply to Parsing a log file

One thing that you may want to consider, is that the file type may not be after the first "." - you could have a file name of /product/widget.2.jpg for example. Sure, on an IIS based server, that is most unlikely.

In that case, the regex to get the file type:

$type = $1 if $results[3] =~ /(\.\w+)$/; # thanks, Ovid
Would need to extract the last ".something". Sorry there is no code fragment - I am back in work after a really late night here - and the coffee hasn't done its stuff yet.

Ken