mtnsms.pl untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 #------------------------------------------------------------------------------
4 #
5 # Standard pragmas
6 #
7 #------------------------------------------------------------------------------
8  
9 use strict;
10 require v5.6.0;
11  
12 use Getopt::Long;
13 use lib 'blib/lib';
14 use Net::SMS::Mtnsms;
15  
16 my @options = qw(
17 username=s
18 password=s
19 recipient=s
20 message=s
21 subject=s
22 verbose
23 );
24  
25 my %args;
26 die <<USAGE unless GetOptions( \%args, @options );
27 $0
28 -username <username>
29 -password <password>
30 -recipient <mobile no.>
31 -message <message>
32 [ -subject <subject> ]
33 [ -verbose ]
34  
35 USAGE
36  
37 my $sms = Net::SMS::Mtnsms->new( %args );
38 $sms->send_sms();