and 1 contributors
FP::Repl - read-eval-print loop
use FP::Repl; repl; # pass parameters (any fields of the FP::Repl::Repl class): repl (skip => 3, # skip 3 caller frames (when the repl call is nested # within something you dont't want the user to see) tty => $fh, # otherwise repl tries to open /dev/tty, or if that fails, # uses readline defaults (which is somewhat broken?) # also, any fields of the FP::Repl::Repl class are possible: maxHistLen => 100, maybe_prompt => "foo>", maybe_package => "Foo::Bar", maybe_historypath => ".foo_history", pager => "more" # etc. );
For a simple parameterless start of `FP::Repl::Repl`.
FP::Repl::Repl: the class implementing this
This is alpha software! Read the status section in the package README or on the website.