Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl-based command line history?

by esh (Pilgrim)
on Aug 15, 2003 at 00:03 UTC ( [id://284052]=note: print w/replies, xml ) Need Help??


in reply to Perl-based command line history?

Check out Term::ReadLine.

You should be able to steal from the sample code quite easily.

Note: I don't know why, but on my setup (RH9.0, Perl 5.6.1) I can press UP once to get to the previous line but have to press UP two more times to get to the one before that. Everything else works like a charm.

-- Eric Hammond

Replies are listed 'Best First'.
Re: Re: Perl-based command line history?
by xiper (Friar) on Aug 15, 2003 at 00:56 UTC
    *sigh* Is that all?!? Why's everything in perl have to be so simple?!? :)

    esh++ many thanks!

    Possible trap for future readers (who are probably brighter than i): you have to also have installed Term::ReadLine::Perl or, preferably, Term::ReadLine::Gnu (which in turn, needs the gnu readline library ).

    my JAPH: print"Just another Perl hacker\n"; # ^ look, no space! pretty tricky hey?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-28 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found