in reply to command recall
However, help is at hand in the form of Term::ReadLine, which can be used to create a line editor similar to that used by shells like bash:
Although note that the capabilities tend to vary depending on how your version of perl was compiled, as the readline library is not always available.use strict; use Term::ReadLine; my $term = new Term::ReadLine 'readline demo'; my $line = $term->readline(">> "); print "Line was: $line\n";
Andrew.
|
|---|