in reply to RE: Re: New Jersey Lottery Probability
in thread New Jersey Lottery Probability

You can make the last one even more useless..
sub p { return (map { $a ? ($a *= $_) : ($a = 1) } (($_[0] - $_[1] + 1) .. + $_[0]))[-1]; }
The little ?: operator is great for making code unreadable :)

For those of you who are not familiar with ?: it is the 'conditional operator' and can be found in the perlop pages.