in reply to Re: Hash Math
in thread Hash Math

When I try your code, I get this Can't modify subtraction (-) in scalar assignment

Replies are listed 'Best First'.
Re^3: Hash Math
by kennethk (Abbot) on Jun 09, 2014 at 23:40 UTC

    There is no subtraction in my posted code. What code did you run? My best guess is that you've forgotten some quoting around your dates.

    Note that if you are using ISO 8601 w/ hyphens, the numerical comparison (the next if... bit) will break down, and so you'll need to use DateTime's built-in comparator.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.