#!/usr/bin/perl
use strict;
use warnings;
use Device::Gsm;
my $port = $^O =~ /Win/ ? 'COM6' : '/dev/modem';
my $myport;
my $gsm = new Device::Gsm(
port => $port, log => 'file,send.log'
);
die "cannot create Device::Gsm object!" unless $gsm;
$gsm->send_sms(
content => 'test',
recipient => '+6281220xxxx',
class => 'normal' # try `flash'
);
You can find related modules for SMS|GSM at http://www.cpan.org