ham-fldigi.pl untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 20 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 # ham-fldigi.pl
5 # v0.001
6 # (c) 2012 Andy Smith, M0VKG
7 #==============================================================================
8 # DESCRIPTION
9 # Example usage of Ham::Fldigi.
10 #==============================================================================
11  
12 use Ham::Fldigi;
13 use Data::Dumper;
14 use Carp;
15  
16 # Create a new Ham::Fldigi object, and then use it to create a new
17 # Ham::Fldigi::Client object.
18 my $f = new Ham::Fldigi('LogLevel' => 4, 'LogFile' => './debug.log', 'LogPrint' => 1, 'LogWrite' => 1);
19 my $c = $f->client('Hostname' => "localhost", 'Port' => 7362, 'Name' => "test");
20  
21 # If $c is undef, there's been a problem...
22 if(!defined($c)) { croak("Couldn't connect to fldigi!"); };
23  
24 # Query for the version
25 my $version = $c->version;
26 print "Fldigi version is ".$version."\n";
27  
28 # Set the modem to BPSK125 and transmit some text.
29 #$c->command("modem.set_by_name", "BPSK125");
30 #$c->send("CQ CQ CQ DE M0QQQ M0QQQ M0QQQ KN");
31 #my $s = $f->shell('Client' => $c);
32 #my $s = $f->shell();
33 #$s->client($c);
34 #$s->start;