X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FBit-MorseSignals.git;a=blobdiff_plain;f=lib%2FBit%2FMorseSignals%2FEmitter.pm;h=18f3940d77a8743ee10b35250d2fbeebe4ef08b5;hp=54203afccc5f8682bb964697f1ccf5d3b605cda8;hb=16fc0df47643288d3229f8671e339d89b159f155;hpb=72cae6c1d4dcdbfe9b437dc8a8949ce282bffeb0 diff --git a/lib/Bit/MorseSignals/Emitter.pm b/lib/Bit/MorseSignals/Emitter.pm index 54203af..18f3940 100644 --- a/lib/Bit/MorseSignals/Emitter.pm +++ b/lib/Bit/MorseSignals/Emitter.pm @@ -3,11 +3,11 @@ package Bit::MorseSignals::Emitter; use strict; use warnings; -use Carp qw/croak/; -use Encode qw/encode_utf8 is_utf8/; -use Storable qw/freeze/; +use Carp qw; +use Encode qw; +use Storable qw; -use Bit::MorseSignals qw/:consts/; +use Bit::MorseSignals qw<:consts>; =head1 NAME @@ -102,7 +102,7 @@ sub post { # BM_DATA_{PLAIN, UTF8, STORABLE} $type = BM_DATA_AUTO unless defined $type and exists $manglers[$type]; if (ref $msg) { - return if { map { $_ => 1 } qw/CODE GLOB/ }->{ref $msg}; + return if { map { $_ => 1 } qw }->{ref $msg}; $type = BM_DATA_STORABLE; } elsif ($type == BM_DATA_AUTO) { $type = is_utf8($msg) ? BM_DATA_UTF8 : BM_DATA_PLAIN; @@ -210,7 +210,7 @@ sub reset { my ($self) = @_; _check_self($self); $self->{state} = @{$self->{queue}} > 0; - @{$self}{qw/buf len pos/} = (); + @{$self}{qw} = (); return $self; }