X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/65d4676373dbb0a9f9c147e0de61eb66e595b91a..78535a7725d2dbf3c0377b9d8069773349ca8c12:/tools/mkwordlist?ds=sidebyside diff --git a/tools/mkwordlist b/tools/mkwordlist index 7611b9f..7c71fae 100755 --- a/tools/mkwordlist +++ b/tools/mkwordlist @@ -1,10 +1,10 @@ #!/usr/bin/env perl use 5.014; use warnings; +use open ':std' => ':encoding(utf-8)'; +use lib $0 =~ s{[^/]+$}{..}r; # project root -BEGIN { push @INC, '.' } use Shiar_Sheet::DB; -use open ':std' => ':encoding(utf-8)'; my $db = Shiar_Sheet::DB->connect; say 'use utf8;';