]> git.vpit.fr Git - perl/modules/Bit-MorseSignals.git/commitdiff
Rewrite a couple of remaining indirect calls
authorVincent Pit <vince@profvince.com>
Wed, 21 Aug 2013 21:18:01 +0000 (18:18 -0300)
committerVincent Pit <vince@profvince.com>
Wed, 21 Aug 2013 21:18:01 +0000 (18:18 -0300)
samples/jerk.pl

index 3ff215b1cd0bb01b2723cdb165e0506851d753a1..72c7b8fa08d76a97822113635527e0dd81668ec5 100755 (executable)
@@ -7,8 +7,8 @@ use lib qw{blib/lib};
 use Bit::MorseSignals::Emitter;
 use Bit::MorseSignals::Receiver;
 
-my $deuce = new Bit::MorseSignals::Emitter;
-my $pants = new Bit::MorseSignals::Receiver done => sub { print $_[1], "\n" };
+my $deuce = Bit::MorseSignals::Emitter->new;
+my $pants = Bit::MorseSignals::Receiver->new(done => sub { print $_[1], "\n" });
 
 $deuce->post('HLAGH') for 1 .. 3;
 $pants->push while defined ($_ = $deuce->pop);