#!perl HELP "help" => "The stuff you're looking at right now :)"; use List::Util qw(max); sub command :Tab(help,wtf,omgwtfbbq) { my ($self, $cart, $command) = @_; return NEXT if $command !~ /^(?:help|wtf|omgwtfbbq)$/; say < after each element to get a follow-up prompt, or separate individual elements with whitespace. Valid commands: END my $width = max(map length, keys %::HELP); say sprintf " %-${width}s %s", $_, $::HELP{$_} for sort keys %::HELP; return ACCEPT; }