|
NAMEReply - read, eval, print, loop, yay!VERSIONversion 0.42SYNOPSISuse Reply; Reply->new(config => "$ENV{HOME}/.replyrc")->run; DESCRIPTIONNOTE: This is an early release, and implementation details of this module are still very much in flux. Feedback is welcome!Reply is a lightweight, extensible REPL for Perl. It is plugin-based (see Reply::Plugin), and through plugins supports many advanced features such as coloring and pretty printing, readline support, and pluggable commands. METHODSnew(%opts)Creates a new Reply instance. Valid options are:
runRuns the repl. Will continue looping until the "read_line" callback returns undef (typically when the user presses "Ctrl+D"), or the "loop" callback returns false (by default, the "#q" command quits the repl in this way).step($line, $verbose)Runs a single iteration of the repl. If $line is given, it will be used as the string to evaluate (and the "prompt" and "read_line" callbacks will not be called). If $verbose is true, the prompt and line will be displayed as though they were typed. Returns true if the repl can continue, and false if it was requested to quit.CONFIGURATIONConfiguration uses an INI-style format similar to the configuration format of Dist::Zilla. Section names are used as the names of plugins, and any options within a section are passed as arguments to that plugin. Plugins are loaded in order as they are listed in the configuration file, which can affect the results in some cases where multiple plugins are hooking into a single callback (see Reply::Plugin for more information).In addition to plugin configuration, there are some additional options recognized. These must be specified at the top of the file, before any section headers.
BUGSNo known bugs.Please report any bugs to GitHub Issues at <https://github.com/doy/reply/issues>. SEE ALSODevel::REPLSUPPORTYou can find this documentation for this module with the perldoc command.perldoc Reply You can also look for information at:
AUTHORJesse Luehrs <doy@tozt.net>COPYRIGHT AND LICENSEThis software is Copyright (c) 2016 by Jesse Luehrs.This is free software, licensed under: The MIT (X11) License
Visit the GSP FreeBSD Man Page Interface. |