in reply to Re: Help with a calculation
in thread Help with a calculation

I don't understand what you mean, can you be more clear? Programming with Perl is new to me and I am not totally clear on your suggestion. Thanks, Hatem Jaber

Replies are listed 'Best First'.
Re^3: Help with a calculation
by john_oshea (Priest) on Feb 04, 2006 at 14:02 UTC

    In this line:

    $sales = sprintf "\$%.2f", param('Sales');

    your $sales variable will end up containing a dollar sign plus whatever value comes from the 'Sales' parameter. Perl will treat this as a string, not a number...

      That makes sense now, thank you for your help. I made the changes and now everything is working great. Thanks again for your help! Hatem Jaber