Ahoy, hoy. I am having problems with this script, it keeps adding 6 blank spaces in front of a variable when it calculates it. I can't see why it's doing so. The variable in question is the $x_amount. Can anybody see where I'm going wrong, or alternately is there a quick way to strip a variable down to just numbers and "."s? Just one line I could add maybe at the end that would strip it of these 6 blank spaces? Any help is appreciated. Thanks, Luke
if ($FORM::F_totalsum) { @sumvars=split(/,/,$FORM::F_totalsum); $x_amount=0; foreach $i (@sumvars) { if ($i eq "F_subtotal") { $x_amount+=$subtotal; } elsif ($i eq "F_tax") { $x_amount+=$tax; } elsif ($var_set{$i}) { $x_amount+=$req->param($i); } else { &err("$i is not defined"); } } $x_amount=¤cy($x_amount); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]