Hello all, I want to format a number so that it has commas as a separator. Here's the code I came up with:
my $num=12345678; print scalar reverse( join(",", grep( /./ ,split (/(...)/,reverse($num))))), "\n"; This works but was wondering if anyone might suggest a better method. Regards, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]