Business::Shipping::DataTools - Convert tables from original format into usable format.
Version 1.01
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.
Archive::Zip Text::CSV::Simple
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.
do_update
download_to_file( $url, $file )
_unzip_file( $zipName, $destination_directory )
filename_only( $path )
Was filename_only.
split_dir_file( $path )
remove_extension( $file )
remove_windows_carriage_returns( $path )
Removes blank lines.
do_download
do_unzip
get_files_to_process()
* 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).
do_convert_data()
Find all data .csv files and convert them from the vanilla UPS CSV format into one that Business::Shipping can use.
Removes dollar signs, some extra spaces, empty lines, and lines with just commas.
rename_tables_that_start_with_numbers
rename_tables_that_have_a_dash
auto_update
get_fh( $filename )
close_fh( $file_handle )
Dan Browning, <db@kavod.com>
<db@kavod.com>
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.
bug-business-shipping-datatools@rt.cpan.org
Copyright 2004-2005 Daniel Browning <db@kavod.com>, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
7 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
=pod directives shouldn't be over one line long! Ignoring all 9 lines of content
You forgot a '=back' before '=head1'
To install Business::Shipping::DataTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Shipping::DataTools
CPAN shell
perl -MCPAN -e shell install Business::Shipping::DataTools
For more information on module installation, please visit the detailed CPAN module installation guide.