I tested this code and it works. You need to place the code right after my(%rec) = @_; in the routine you are doing this in. If you still can't get it to work, post the url to the files in txt form.
But, wait... when there is a number with .xx i.e. $1000.50 then it messed up. ------- =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g; ------- Are those 3 Ds represent digits backward? How can we make the number with .xx (2 digits) be done?
It worked for me. I tried a number like 1254.55 and I got 1,254.55 and 15544489.25 resulted in 15,544,489.25. Is the $ part of the number? That may be the problem. Try storing the number only and then append the $.
------------------ Eliot Lee Anthro TECH,L.L.C www.anthrotech.com * Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!! * Search Forums! * Say NO to Duplicate Threads. :) ----------------------