in reply to Re: How to perldebug a Term::ReadLine application (the other way round)
in thread How to perldebug a Term::ReadLine application
Why not:
DEBUG_TTY=`tty` xterm -e perl -d ./myRLprog.plThen in myRLprog.pl, include:
if (defined $ENV{DEBUG_TTY}) { my $tty = $ENV{DEBUG_TTY}; open my $out,'>',$tty; open my $in,'<',$tty; my $term = Term::ReadLine->new('Simple Perl calc',$in,$out); } else { ...; }
Would that work?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to perldebug a Term::ReadLine application (the other way round)
by LanX (Saint) on Dec 01, 2014 at 18:45 UTC |
In Section
Cool Uses for Perl