There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

SYNOPSIS

Activate completion using (can be put in your bash startup file):

% complete -C demo-getopt-long-complete demo-getopt-long-complete

Test completion:

% demo-getopt-long-complete <tab>
% demo-getopt-long-complete -<tab>
% demo-getopt-long-complete --int 1 -<tab>
# and so on