X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/65d4676373dbb0a9f9c147e0de61eb66e595b91a..a668d95d135825e04289106c9a7b73096709eb2d:/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;';