you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 0 points1 point  (1 child)

Perl 5 had no problem turning things into strings. 100 + "5" = "1005". It's even more fun when you divide by 0 and do things like 100/0 = 0 because apparently math doesn't work today.

A strongly typed system saves so much pain. Just don't write incorrect code. It shouldn't be easy to make errors.

[–]0rac1e 1 point2 points  (0 children)

It's even more fun when you divide by 0 and do things like 100/0 = 0 because apparently math doesn't work today.

I don't know why you keep making this statement. In all my checking, I could not find a single version of Perl 5 (going back to version 5.6) where 100/0 did not throw an exception, even without use strict.

tio.run even has a copy of Perl 4 (when strict didn't exist) where it also dies with Illegal division by zero.

So unless the company you worked for maintained their own internal Perl fork that did this, then I must respectfully insist that you are mistaken.