Thread sub richtig aufrufen (19 answers)
Opened by atragator at 2008-02-18 12:30

atragator
 2008-02-18 14:06
#106046 #106046
User since
2008-02-18
12 Artikel
BenutzerIn
[default_avatar]
Wäre dass dann so richtig ?, oder muss ich noch die decode() aufrufen ?
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Device::Gsm::Sms;
# Or you can instance a sms message from raw PDU data
    my $msg = new Device::Gsm::Sms(
        header => '+CMGL: 4',
        pdu    => '[07916407080007F8240F9164170900013635F40000702101310024400141]',
        storage=> 'ME', # or 'SC'
    );


if( defined $msg ) {
        print $msg->recipient() , "\n";
        print $msg->sender()    , "\n";
        print $msg->text()   , "\n";  # or $msg->text()
        print $msg->time()      , "\n";
        print $msg->type()      , "\n";
    }

View full thread sub richtig aufrufen