[ic] UPS Shipping - how to add a percentage?

Bob Puff@NLE bob@nleaudio.com
Mon, 02 Apr 2001 22:02:59 -0400


In reading the docs (!), I find examples of using the UPS tables to calculate shipping, and also how to add a fixed anount to the shipping value, and also how to round up.  I also see how to do formulas based on weight or dollar amount.

However, I want to do both!  I want to take the number from the UPS table, multiply it by 1.25, then add 3 to the result.

The docs say:
"You can append a simple shipping cost qualification to a UPS lookup. If any additional parameters are present after the five usual ones used for UPS lookup, they will be interpreted as a Perl subroutine call. The syntax is the same as if it was encased in the tag [perl sub] [/perl], but the following substitutions are made prior to the call: ..."

What I would request would be a sample of how this is accomplished.  I'm unfortunately at a loss here.  Any examples of a perl script that uses the UPS lookup tables would be most appreciated.  Thanks.