Hi Justin,
What you have done will work, except the Perl string comparison
operators are "eq", "lt", "le", "gt" and "ge". The "=", "lt;", "lt;=", "gt;" and
"gt;=" are numerical comparison operators. So your -if
statement should be:
- if "$model eq 'NIKON D200' and $createdate ge '2008:03:30' and $createdate le '2008:06:10'"
Note that in general you have to be careful using "eq" to test Model strings
because sometimes you get trailing spaces in the model name. But in this
case, the D200 doesn't have this problem. However, the way around this
for other cameras is to use a regular expression to look for a substring:
-if "$model =~ /NIKON D200/"
- Phil