Devel::REPL::Plugin::Editor - Add #edit command to drop into an editor for longer expressions
version 0.02
# in ~/.re.pl/repl.rc $_REPL->load_plugin('Editor');
This plugin adds an edit command to your REPL, invoked using #edit (or using whatever "default_command_prefix" in Devel::REPL::Plugin::Turtles is). When you run the the edit command, the REPL drops you into $ENV{'EDITOR'}, and the code you type in that file is executed after you exit the editor. edit accepts an optional filename as the file to edit. If you don't provide one, a temporary one will be created; you can open it again with the #redit command.
edit
#edit
$ENV{'EDITOR'}
#redit
Devel::REPL
Rob Hoelz <rob@hoelz.ro>
This software is copyright (c) 2014 by Rob Hoelz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/devel-repl-plugin-editor/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
To install Devel::REPL::Plugin::Editor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::REPL::Plugin::Editor
CPAN shell
perl -MCPAN -e shell install Devel::REPL::Plugin::Editor
For more information on module installation, please visit the detailed CPAN module installation guide.