hand-patched https://github.com/rolandwalker/perl-completion/commit/98bdec09f1380268665d4d854aa4920e9fcee437