From: Vincent Pit Date: Wed, 21 Aug 2013 21:18:01 +0000 (-0300) Subject: Rewrite a couple of remaining indirect calls X-Git-Tag: v0.08~1 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=cdb4aa19a35b9c9f2ccc4a6f4c31d16059ca1089;p=perl%2Fmodules%2FBit-MorseSignals.git Rewrite a couple of remaining indirect calls --- diff --git a/samples/jerk.pl b/samples/jerk.pl index 3ff215b..72c7b8f 100755 --- a/samples/jerk.pl +++ b/samples/jerk.pl @@ -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);