Devel-REPL-Plugin-Editor
view release on metacpan or search on metacpan
"configure_requires" => {
"Module::Build" => "0.3601"
},
"dist_abstract" => "Add #edit command to drop into an editor for longer expressions",
"dist_author" => [
"Rob Hoelz <rob\@hoelz.ro>"
],
"dist_name" => "Devel-REPL-Plugin-Editor",
"dist_version" => "0.02",
"license" => "perl",
"module_name" => "Devel::REPL::Plugin::Editor",
"recommends" => {},
"recursive_test_files" => 1,
"requires" => {
"Devel::REPL" => 0,
"File::Slurp" => 0,
"namespace::clean" => 0,
"perl" => "v5.8.8"
},
"script_files" => [],
"test_requires" => {
lib/Devel/REPL/Plugin/Editor.pm view on Meta::CPAN
## no critic (RequireUseStrict)
package Devel::REPL::Plugin::Editor;
$Devel::REPL::Plugin::Editor::VERSION = '0.02';
## use critic (RequireUseStrict)
use Devel::REPL::Plugin;
use File::Slurp qw(read_file);
use File::Temp ();
use namespace::clean -except => 'meta';
has evaluating_file_contents => (
is => 'rw',
default => 0,
);
lib/Devel/REPL/Plugin/Editor.pm view on Meta::CPAN
}
1;
=pod
=encoding UTF-8
=head1 NAME
Devel::REPL::Plugin::Editor - Add #edit command to drop into an editor for longer expressions
=head1 VERSION
version 0.02
=head1 SYNOPSIS
# in ~/.re.pl/repl.rc
$_REPL->load_plugin('Editor');
=head1 DESCRIPTION
This plugin adds an C<edit> command to your REPL, invoked using C<#edit> (or
using whatever L<Devel::REPL::Plugin::Turtles/default_command_prefix> is).
When you run the the edit command, the REPL drops you into C<$ENV{'EDITOR'}>,
and the code you type in that file is executed after you exit the editor.
C<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 C<#redit> command.
=head1 SEE ALSO
L<Devel::REPL>
( run in 0.351 second using v1.01-cache-2.11-cpan-4ee56698ea0 )