From 385ecd49b026ac0613d609ac8aa7366ac438af23 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 21 Jan 2020 21:10:43 -0800 Subject: [PATCH] Plugins/Battleship.pm: better unicode fix --- Plugins/Battleship.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugins/Battleship.pm b/Plugins/Battleship.pm index 9d73d742..087d61d0 100644 --- a/Plugins/Battleship.pm +++ b/Plugins/Battleship.pm @@ -11,6 +11,7 @@ use feature 'switch'; no if $] >= 5.018, warnings => "experimental::smartmatch"; use feature 'unicode_strings'; +use utf8; use Carp (); use Time::Duration qw/concise duration/; @@ -46,8 +47,6 @@ sub initialize { $self->{player_two_vert} = 'I'; $self->{player_two_horiz} = '='; - utf8::decode $self->{player_one_horiz}; - $self->create_states; }