Term::ReadLine by itself only provides very basic functionality,
mostly stubs for functions that are actually provided by other
packages, namely
Term::ReadLine::Gnu,
Term::ReadLine::Perl and others. But you do not
use these modules directly. You always use Term::ReadLine,
and it detects which ones are installed and picks the best
one (for some definition of "best"). There is a minimum set
of supported methods, and you can check what other features
you have available through the Features method.
As for history, if you have Term::ReadLine::Gnu, it is
enabled automatically and you can access it using
ctrl-p/uparrow and ctrl-n/downarrow. You can also manually add
lines or otherwise manipulate the history. See the
documentation for Term::ReadLine::Gnu for details.
I have never used tab completion, but there are a number of
functions that deal with that in the documentation, so you
should be able to figure it out.
--ZZamboni
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.