X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/254f395a864dea55080e1ce4f9f0f3dab55af475..4f46c6511b0216102dc51414401fc20bff74a88b:/tools/lastword?ds=inline diff --git a/tools/lastword b/tools/lastword index b8e94f9..66709bf 100755 --- a/tools/lastword +++ b/tools/lastword @@ -1,7 +1,7 @@ #!/usr/bin/env -S perl -ni use 5.014; use warnings; -use lib '.'; +use lib $0 =~ s{[^/]+$}{..}r; # project root use Shiar_Sheet::DB; my $db = Shiar_Sheet::DB->connect;