use strict;
use warnings;
-use Carp qw/croak/;
-use POSIX qw/SIGUSR1 SIGUSR2/;
-use Time::HiRes qw/usleep/;
+use Carp qw<croak>;
+use POSIX qw<SIGUSR1 SIGUSR2>;
+use Time::HiRes qw<usleep>;
use Bit::MorseSignals::Emitter;
-use base qw/Bit::MorseSignals::Emitter/;
+use base qw<Bit::MorseSignals::Emitter>;
=head1 NAME
use strict;
use warnings;
-use Carp qw/croak/;
+use Carp qw<croak>;
use Bit::MorseSignals::Receiver;
-use base qw/Bit::MorseSignals::Receiver/;
+use base qw<Bit::MorseSignals::Receiver>;
=head1 NAME
=head1 DESCRIPTION
-This module installs C<$SIG{qw/USR1 USR2/}> handlers and forwards the bits received to an underlying L<Bit::MorseSignals> receiver.
+This module installs C<< $SIG{qw<USR1 USR2>} >> handlers and forwards the bits received to an underlying L<Bit::MorseSignals> receiver.
=head1 METHODS
croak 'The first argument must be a hash reference to the %SIG hash'
unless $sig and ref $sig eq 'HASH';
my $self = bless $class->SUPER::new(@_), $class;
- @{$sig}{qw/USR1 USR2/} = (sub { $self->push(0) }, sub { $self->push(1) });
+ @{$sig}{qw<USR1 USR2>} = (sub { $self->push(0) }, sub { $self->push(1) });
return $self;
}
use strict;
use warnings;
-use POSIX qw/SIGINT SIGTERM SIGKILL SIGHUP EXIT_FAILURE/;
+use POSIX qw<SIGINT SIGTERM SIGKILL SIGHUP EXIT_FAILURE>;
-use lib qw{blib/lib t/lib};
+use lib qw<blib/lib t/lib>;
-use IPC::MorseSignals::TestSuite qw/init bench cleanup/;
+use IPC::MorseSignals::TestSuite qw<init bench cleanup>;
sub diag { print STDERR "@_\n" };
*IPC::MorseSignals::TestSuite::diag = *main::diag;
use strict;
use warnings;
-use POSIX qw/pause EXIT_SUCCESS EXIT_FAILURE/;
+use POSIX qw<pause EXIT_SUCCESS EXIT_FAILURE>;
-use lib qw{blib/lib};
+use lib qw<blib/lib>;
use IPC::MorseSignals::Emitter;
use IPC::MorseSignals::Receiver;
require IPC::MorseSignals::Emitter;
-for (qw/new post pop reset flush busy queued/, qw/new send delay speed/) {
+for (qw<new post pop reset flush busy queued>, qw<new send delay speed>) {
ok(IPC::MorseSignals::Emitter->can($_), 'IME can ' . $_);
}
require IPC::MorseSignals::Receiver;
-for (qw/new push reset busy msg/, qw/new/) {
+for (qw<new push reset busy msg>, qw<new>) {
ok(IPC::MorseSignals::Receiver->can($_), 'IMR can ' . $_);
}
use Test::More tests => 4;
-use POSIX qw/SIGUSR1 SIGUSR2/;
+use POSIX qw<SIGUSR1 SIGUSR2>;
my ($a, $b) = (0, 0);
use IPC::MorseSignals::Emitter;
use IPC::MorseSignals::Receiver;
-my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00}
- h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}/;
+my @msgs = qw<hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00}
+ h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}>;
my $deuce = IPC::MorseSignals::Emitter->new(speed => 1024);
my $pants = IPC::MorseSignals::Receiver->new(\%SIG, done => sub {
use IPC::MorseSignals::Emitter;
use IPC::MorseSignals::Receiver;
-my @msgs = qw/€éèë 月語 x tata たTÂ/;
+my @msgs = qw<€éèë 月語 x tata たTÂ>;
sub cp { join '.', map ord, split //, $_[0] }
use Test::More tests => 7;
use lib 't/lib';
-use IPC::MorseSignals::TestSuite qw/try init cleanup/;
+use IPC::MorseSignals::TestSuite qw<try init cleanup>;
*IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
ok($res, $desc . ' (' . $len . ' bits @ ' . $speed . ' bauds)');
}
-my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00}
- h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}/;
+my @msgs = qw<hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00}
+ h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}>;
init 6;
use Test::More tests => 5;
use lib 't/lib';
-use IPC::MorseSignals::TestSuite qw/try init cleanup/;
+use IPC::MorseSignals::TestSuite qw<try init cleanup>;
*IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
ok($res, $desc . ' (' . $len . ' bits @ ' . $speed . ' bauds)');
}
-my @msgs = qw/€éèë 月語 x tata たTÂ/;
+my @msgs = qw<€éèë 月語 x tata たTÂ>;
init 6;
use Test::More tests => 8;
use lib 't/lib';
-use IPC::MorseSignals::TestSuite qw/try init cleanup/;
+use IPC::MorseSignals::TestSuite qw<try init cleanup>;
*IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
use Test::More tests => 1 + ($n = 5);
use lib 't/lib';
-use IPC::MorseSignals::TestSuite qw/bench init cleanup/;
+use IPC::MorseSignals::TestSuite qw<bench init cleanup>;
*IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
use warnings;
use Data::Dumper;
-use POSIX qw/pause SIGKILL EXIT_FAILURE/;
+use POSIX qw<pause SIGKILL EXIT_FAILURE>;
use IPC::MorseSignals::Emitter;
use IPC::MorseSignals::Receiver;
-use base qw/Exporter/;
+use base qw<Exporter>;
-our @EXPORT_OK = qw/try bench init cleanup/;
+our @EXPORT_OK = qw<try bench init cleanup>;
$Data::Dumper::Indent = 0;