http://www.perlmonks.org?node_id=347638


in reply to Tab completion on the command line

You could have a look at Bash programmable Completion, but note that this is platform and shell dependent. Incidently, it has nothing to do with Perl.

Hope this helps, -gjb-