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