I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-07-14 13:38:43-07 by exiftool in response to 8298
Re: Help Using Conditional Logic Please
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
Direct Responses: 8314 | Write a response