The code was based on the pearl script on the Wikipedia page, which only shows how to get 6 digits.

Do you know of somewhere that shows how to get the last two digits?