Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Simulating Command Line History in Perl

by rowdog (Curate)
on Apr 23, 2010 at 22:07 UTC ( [id://836617]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Simulating Command Line History in Perl
in thread Simulating Command Line History in Perl

Term::ReadLine will pick from a number of different backends depending on what's available. My custom built perl finds Term::ReadLine::Gnu and works just fine. My system perl, which I never touch, found Term::ReadLine::Stub which does not work correctly, because it's just a stub.

Add this line to almut's code to see your backend.

print "Using ", $term->ReadLine, "\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found