By the time we reach that line in the subroutine we are only left with years that are divisible by 4 because of the line above, which is
return 0 if $year % 4;
so your amendment, and not $year %4, is superfluous.
Cheers,
JohnGG
In reply to Re^3: Simple Date Validation
by johngg
in thread Simple Date Validation
by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |