Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Net::UPS causing undefined array ref error

by grep (Monsignor)
on Dec 19, 2006 at 02:33 UTC ( #590592=note: print w/ replies, xml ) Need Help??


in reply to Net::UPS causing undefined array ref error

@{$self->request_rate($from, $to, $packages, $args)} is the array ref your error message is referring to. So that means the call to $self->request_rate failed. But that error message is still not very informative. I would run it through the perl debugger (perl -d script) just hit 'c' and you'll see the entire error stack.

grep
1)Gain XP 2)??? 3)Profit


Comment on Re: Net::UPS causing undefined array ref error
Select or Download Code
Re^2: Net::UPS causing undefined array ref error
by bradcathey (Prior) on Dec 19, 2006 at 03:09 UTC

    I was able to Dump just before the line in question.

    Does this help? I guess I'm not sure if there should be any undef's, but you'd think the docs would point that out.

    print Dumper ($from, $to, $packages, $args); $VAR1 = bless( [ undef, undef, '60446', undef, undef, undef ], 'Net::UPS::Address' ); $VAR2 = bless( [ undef, undef, '65432', undef, undef, undef ], 'Net::UPS::Address' ); $VAR3 = [ bless( [ undef, undef, undef, undef, undef, undef, '2.26' ], 'Net::UPS::Package' ) ]; $VAR4 = { 'mode' => 'shop', 'service' => 'GROUND' };

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
      Does this help? I guess I'm not sure if there should be any undef's, but you'd think the docs would point that out.
      Not really. You should run it through the debugger and get the whole error stack. That will illuminate a lot more.

      grep
      1)Gain XP 2)??? 3)Profit

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-09-21 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls