Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Net::SMPP blowing up

by ptum (Priest)
on Apr 02, 2007 at 21:30 UTC ( #607927=note: print w/ replies, xml ) Need Help??


in reply to Net::SMPP blowing up

I've never used Net::SMPP so I'm totally punting, but here are two wild guesses:

  1. Your destination_addr parameter doesn't have a plus sign at the beginning as shown in the sample code in Net::SMPP
  2. Using Data::Dumper can often help -- sometimes I see error messages like the one you are encountering when I try to invoke object methods on an object but I haven't correctly created the object, so the methods are invalid. Dump out $smpp and $resp_pdu or test 'em to make sure they are valid objects before you try to invoke their methods.


Comment on Re: Net::SMPP blowing up
Replies are listed 'Best First'.
Re^2: Net::SMPP blowing up
by UnderMine (Friar) on Apr 03, 2007 at 09:26 UTC
    Got it working by changing the code to use the more convetional syntax :-
    sub status {
        my $me = shift;
        return $me->{status};
    }
    
    Thanks
    UnderMine

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-08-01 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls