Thanks for the vote of confidence. I noticed a couple of problems
in my last post. First, I forgot the ampersand for the HTML character
entities in this sentence:
What you have done will work, except the Perl string comparison operators
are "eq", "lt", "le", "gt" and "ge". The "=", "<", "<=", ">" and ">="
are numerical comparison operators.
And second, I realized there is no use testing for equality since of course
a date/time value can never equal '2008:03:30', so you are effectively stuck
with "lt" and "gt" for your date tests. So to test 2008:03:30 to 2008:06:10
inclusive, the condition is:
-if "$createdate gt '2008:03:30' and $createdate lt '2008:06:11'"
This works because "2008:03:30 xx:xx:xx" is greater than "2008:03:30",
but all date/time values on 2008:06:10 come before "2008:06:11" when
compared as a string.
- Phil
(6)
]
