in reply to using Term::ReadLine::Gnu

I think you need to give the function a name first (with add_defun()), and then use that name in the bind_key() call

... $term->add_defun('insert-text', \&insertxt); $term->bind_key(61, 'insert-text'); ...

Replies are listed 'Best First'.
Re^2: using Term::ReadLine::Gnu
by my_nihilist (Sexton) on Mar 19, 2008 at 20:42 UTC
    hey now isn't that handy! Remind me not to bother with too much Term::Readline::Gnu in the future!

    anyway, thanks much almut