in reply to Re: Re: mod functionin thread mod function
To me the advantage of:
if ($y % 3 == 0) { } [download]
is that you are explicitly stating that you are testing for a modulus being zero.
With:
unless ($y % 3) { } [download]
you are saying you are interested in Perl's idea of the statement's truth/falsehood - which is a subtly different concept.