update-UPS-surcharge.pl
Installed by Business::Shipping.
Updates the fuel surcharge (stored in config/fuel_surcharge.txt) from the UPS web site. It is recommended that this be run every first Monday of the month in the early AM. Here is an example line to add to your crontab:
config/fuel_surcharge.txt
01 4 * * 1 Business-Shipping-UPS_Offline-update-fuel-surcharge.pl
That causes cron to run this update program at 4:01 AM every Monday. Another good cronjob to have is one that will update your Business::Shipping::DataFiles:
01 4 * * 1 perl -MCPAN -e 'install Business::Shipping::DataFiles' http://www.ups.com/content/us/en/resources/find/cost/fuel_surcharge.html
LWP::UserAgent
Stores the "Good Through" rate in config/fuel_surcharge.txt, with the date it was updated.
Note: this is not an object-oriented method.
Daniel Browning, db@kavod.com, http://www.kavod.com/
Copyright 2003-2011 Daniel Browning <db@kavod.com>. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.
To install Business::Shipping, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Shipping
CPAN shell
perl -MCPAN -e shell install Business::Shipping
For more information on module installation, please visit the detailed CPAN module installation guide.