Doug McNutt wrote:
At 00:32 +0000 1/23/07, Smylers wrote:

% perl -wle 'print 99 / 2'
49.5


I would expect the line to return 49 because you surely meant integer
> division. Perl 5 just doesn't have a user-available type integer.

I'd find that somewhat unhelpful. Especially on a one-liner, literals should be Num-bers, because that's what's usually intended. Either that, or infix:</>(Int,Int-->Num) -- except when MMD on return type finds a more constrained form.

Reply via email to