We don't bite newbies here... much | |
PerlMonks |
Re^3: Help with a calculationby john_oshea (Priest) |
on Feb 04, 2006 at 14:02 UTC ( [id://527944]=note: print w/replies, xml ) | Need Help?? |
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...
In Section
Seekers of Perl Wisdom
|
|