in reply to converting to a currency

Using sprintf, would be my guess:
my $curr = sprintf("$%.2f", $value);

C.

Replies are listed 'Best First'.
Re: Re: converting to a currency
by scubaelmo (Initiate) on May 14, 2004 at 18:33 UTC
    This line of code has a small error in it... it should be my $curr = sprintf("\$%.2f", $value); It works fine after that. Scubaelmo "It's kind of fun to do the impossible.." Walt Disney