Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Net::UPS causing undefined array ref error

by grep (Monsignor)
on Dec 19, 2006 at 02:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://590592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-20 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found