Devel::REPL::Plugin::LexEnv(3pm)

Devel::REPL::Plugin::LexEnv3pm

Provide a lexical environment for the repl

Usage

 # in your re.pl file:
 use Devel::REPL;
 my $repl = Devel::REPL->new;
 $repl->load_plugin('LexEnv');
 $repl->lexical_environment->do(<<'CODEZ');
 use FindBin;
 use lib "$FindBin::Bin/../lib";
 use MyApp::Schema;
 my $s = MyApp::Schema->connect('dbi:Pg:dbname=foo','broseph','elided');
 CODEZ
 $repl->run;
 # after you run re.pl:
 $ warn $s->resultset('User')->first->first_name # <-- note that $s works

Version

version 1.003029

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL> (or [email protected] <mailto:[email protected]>).

There is also an irc channel available for users of this distribution, at "#devel" on "irc.perl.org" <irc://irc.perl.org/#devel-repl>.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

Author

Matt S Trout - mst (at) shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>)

From libdevel-repl-perl 1.003029-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.