#!/usr/bin/perl use Term::Complete; print "Type ap, then hit the key or \n"; my $foo=Complete('>',('application','apple','applicant')); print "You typed [$foo]\n";