In class assignment

This is a short version of a real log file for Apache web server:

Assume that you have all that information inside an array named @access_log please write a Perl script that computes how many times the server were accessed on Monday, Tuesday, etc. ALso compute how many times the server were accessed between 1pm and 2pm, 2pm and 3pm, etc. Generally speaking, I would like to see a script that can answer questions like:
  • What is the most popular week day?
  • What is the most popular hour?