Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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

Replies are listed 'Best First'.
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?
[marto]: Milwaukee
[1nickt]: thx marto
[LanX]: Canada?
[MidLifeXis]: :-)
[MidLifeXis]: Not for a few years yet. Kids in school :-)
[LanX]: NQC
[MidLifeXis]: Is there internet access up there on the lakes? If I moved there I would like to be able to fish :-D
[LanX]: Not Quite Canada
[Discipulus]: have you been fired?!?
[LanX]: remote rules, I've been offered jobs in the US with the promise to stay outside

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2017-03-23 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (286 votes). Check out past polls.