in reply to Making money look nice
my $amount = sprintf ('%.2f',shift()); my $s = length($amount) - 6; while ($s > 0) { substr($amount,$s,0) = ","; $s -=3; } return $currency_unit.$amount; [download]