in reply to Using Term::ReadLine and pasting input with tabs

That's because of tab completion, you need to disable it. IIRC it's done by binding (rl_bind_key in GNU Readline) the tab char to a function that just inserts literal tab. I don't know what backend you're using, so read its documentation.

P.S. I checked the doc for Term::ReadLine::Gnu, it seems it's something like $term->bind_key(ord "\t", 'tab-insert')

Replies are listed 'Best First'.
Re^2: Using Term::ReadLine and pasting input with tabs
by crux_capacitor (Initiate) on Mar 23, 2016 at 11:03 UTC
    It worked! Thank you! I'm using Term::ReadLine::readline, and so the line that fixed it was just this:
    &readline::rl_bind('tab', 'tab-insert');