in reply to Re: time diff in minutes
in thread time diff in minutes

Here's why I don't like the code in this answer:
  1. It gets the length of @times with $#times, but then later assume it has only two elements
  2. It prints, but the sub is called 'Get'
  3. It assumes times < 1200 are all in the afternoon!
  4. It doesn't use warnings
  5. It uses quotes to define constant integers

Please consider DateTime


- Boldra