note
morgon
To answer my own question (I am sure in a few year's time I'll have to look it up again and hop to find this then), this seems to work:
<c>
use strict;
use Term::ReadLine;
my $term = Term::ReadLine->new('a');
# use vi-mode
$term->parse_and_bind("set editing-mode vi");
print "you entered: " . $term->readline("Enter something: ");
</c>
1229767
1229767