Thread sub richtig aufrufen
(19 answers)
Opened by atragator at 2008-02-18 12:30
Hab jetzt sowas benutzt und es tut :)
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 my $msg = new Device::Gsm::Sms( header => '+CMGL: 1,2,3,4', pdu => '07917283010010F5040BC87238880900F10000993092516195800AE8329BFD4697D9EC37', storage=> 'ME', # or 'SC' ); if( defined $msg ) { print $msg->recipient() , "\n"; print $msg->sender() , "\n"; print $msg->content() , "\n"; # or $msg->text() print $msg->time() , "\n"; print $msg->type() , "\n"; } |