in reply to Re: How to perldebug a Term::ReadLine application (the other way round)
in thread How to perldebug a Term::ReadLine application

As another possibility, maybe:

TEMP=$(mktemp /tmp/temporary-file.XXXXXXXX) xterm -e bash -c "tty >$TEMP; sleep 24h" sleep 1 # give time for tty to run exec 9<$TEMP read -u 9 SLAVE_TTY exec 9<&- export SLAVE_TTY perl myRLprog.pl

This can be done in a more Perl-ish way, but this is the general idea. (Except for xterm, tty and perl, the commands are built into bash.)

  • Comment on Re^2: How to perldebug a Term::ReadLine application (the other way round)
  • Download Code