[thelist] Perl program question
Portman
mrport at sbcglobal.net
Fri Jun 9 12:35:36 CDT 2006
Thanks for the reply Mark. My brain is a little overwhelmed right now
but I will look at this more closely later.
Riva
Mark Groen wrote:
> # Methinks you need to find out if this returns null:
> my $selectedState=$q->param('state');
> # then
> else { something - see below }
> # before you do this
> my $shippingCharge=$shipcost{$selectedState}*$1+5;
> # Multiply total by percentage and add $5 for shipping
> # my $grandTotal= ($shippingCharge*$1)+6;
>
> Hope that makes sense?
>
> Also,
> if ($selectedState eq '') then this part instead of being empty/false would be true and your calculation appears.
>
> Not too familiar with perl, maybe that helps some though...
>
More information about the thelist
mailing list