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
Comment on
Re^7: Illegal division by zero error
In Section
Seekers of Perl Wisdom