Yes, I am aware. My goal is to write this in pure perl. The goal isn't necessarily to produce the smallest perl script possible but one that is easy to understand and does perform well considering it's written in pure perl. So, I am looking for such a solution. Remember, I am just a hobby programmer, which means I am not getting paid for the lines of code I write. And I am not getting paid by the hour or by the product I produce. It's entirely for entertainment and fun. So, with that in mind, I am trying to understand how to divide a big integer by another big integer, and this is quite tricky, because a big integer means it can be hundreds of digits long, so it's not going to fit into a regular perl number. Normally, perl numbers have 15 significant digits, and anything beyond that is lost because it has to fit into 64 bits. So, therefore, using regular numbers is out of the question, I guess.