in reply to Re^4: Date Handling in Perl
in thread Date Handling in Perl

Thanks, it's smaller and was even stated in documentation:

Because this operator produces an assignable result, using assignments without parentheses will get you in trouble. For example, this:

$a % 2 ? $a += 10 : $a += 2

Really means this:

(($a % 2) ? ($a += 10) : $a) += 2

I should have noticed it.

Sorry if my advice was wrong.