Okay, so I've written a few scripts and they seem to do what they want, but I am still refining certain techniques...this week's pain is formatting a number in standard number form, such 1,000, 10,000 etc etc rather than 1000 and 10000 etc etc.

I've been looking at sprintf to do it, but I am not quite getting the format correctly, atleast I don't think I am.

I have a few counting statements which count files in a directory...currently the counts are less than 999, but when they increase above that, I'd like them to look like human numbers: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

$numfiles2 = 123456789;</pre><HR></BLOCKQUOTE> with your sub, and also tried it with the FAQ's sub, both spit out the same results for 3 instances they are called from (3 individual results for 3 instances): 740740734 864197523 617283945