in reply to Conversion from Scientific Notation
Right, that makes sense. Now that I think about it, when I tried to use the wrong regex to get the numbers out, I somehow assumed that my mistake meant that perl was lacking the ability to deal with the numbers. So I wrote this without even trying the strings.
Thanks all for the responses!