I just got this module and have been playing with it. I haven't used perl for a long time, and didn't remember how to debug, so this thread was helpful :) Thanks.
I also found after debugging for a while that in my case the request_rate method was failing because, according to UPS, "This measurement system is not valid for the selected country." Perhaps you are getting a similar error...
To make it display any error you're getting, you can insert the following lines into UPS.pm at line 210...
210:
211: unless (defined $services) {
212: croak("rate(): services error - " . $self->errstr());
213: }
214:
Then
make clean
perl Makefile.PL
make
make install
and perhaps you'll be a little closer :)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.