Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

How to perldebug a Term::ReadLine application

by LanX (Saint)
on Dec 01, 2014 at 14:42 UTC ( [id://1108836]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    > PERLDB_OPTS="TTY=`tty`  ReadLine=0" xterm -e perl -d ./calc_TRL.pl
    
    ...
      DB<2> c 
    main::(./calc_TRL.pl:9):      $term->addhistory($_) if /\S/;
      DB<3>
    
  2. or download this
    Enter code: 1+2
    3
    Enter code: 4+4
    8
    
  3. or download this
    > cat ./calc_TRL.pl
    use Term::ReadLine;
    ...
      print $OUT $res, "\n" unless $@;
      $term->addhistory($_) if /\S/;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://1108836]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-19 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found