in reply to Re^6: Illegal division by zero error
in thread Illegal division by zero error

OK, have a look at quantifiers in perlre