Attempted to do the following simple test script :-
#SMPP Test
use strict;

my $host='www.some-smpp-mobile.com';
my $port=1666;

use Net::SMPP;
my $smpp = Net::SMPP->new_transmitter($host, port=>$port,
                               system_id => 'Account',
                               password  => 'XXXXXXXX',
                               ) or die;

my $resp_pdu = $smpp->submit_sm(destination_addr => '4478123456789',
                                short_message    => 'test message')
           or die;
die "Response indicated error: " . $resp_pdu->explain_status()
           if $resp_pdu->status;

The trouble is I get the following error message :-
Not a GLOB reference at /usr/lib/perl5/site_perl/5.8.8/Net/SMPP.pm line 2301.
The code causing the error is :-
sub status {
    my $me = shift;
    return ${*$me}{status};
}
The SMS message appears to be correctly sent/not sent prior to this error occuring so it is not dependant on the outcome of the sending.

Any wisdom as to what could be causing this bizare side effect.


UnderMine

In reply to Net::SMPP blowing up by UnderMine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.