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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.