Business::Shipping::DataTools - Convert tables from original format into usable format.


Business-Shipping-DataTools documentation  | view source Contained in the Business-Shipping-DataTools distribution.

Index


NAME

Top

Business::Shipping::DataTools - Convert tables from original format into usable format.

VERSION

Top

Version 1.01

SYNOPSIS

Top

 bin/update.pl

This is an optional module. It is used to update Business::Shipping::DataFiles. These tools convert the original source data obtained from shippers into a format that Business::Shipping can use. It is normally run only once per year when UPS releases new tables (which explains the poor quality of the source code).

It will unzip the data UPS data files and create .dat files. These .dat files are used by Business::Shipping, you can copy them to the data directory.

REQUIRED MODULES

Top

 Archive::Zip
 Text::CSV::Simple

INSTALLATION

Top

All that is necessary to begin using this module is to untar it. You do not need to 'perl Makefile.PL' or make or anything else.

  Was filename_only.

* scrub_file( $filename )

Removes blank lines.

 * Find all *rate* csv files in the data directory (and sub-dirs)
 * Ignore zone files (because they can be used as-is) 
 * Ignore other files (zip files, extented area, residential, domestic, fuel surcharge, etc. files).

remove_misc()

Removes dollar signs, some extra spaces, empty lines, and lines with just commas.

AUTHOR

Top

Dan Browning, <db@kavod.com>

BUGS

Top

Please report any bugs or feature requests to bug-business-shipping-datatools@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


Business-Shipping-DataTools documentation  | view source Contained in the Business-Shipping-DataTools distribution.