1Devel::REPL::Plugin::LeUxsEenrv(C3o)ntributed Perl DocumDeenvtealt:i:oRnEPL::Plugin::LexEnv(3)
2
3
4

NAME

6       Devel::REPL::Plugin::LexEnv - Provide a lexical environment for the
7       REPL
8

VERSION

10       version 1.003028
11

SYNOPSIS

13        # in your re.pl file:
14        use Devel::REPL;
15        my $repl = Devel::REPL->new;
16        $repl->load_plugin('LexEnv');
17
18        $repl->lexical_environment->do(<<'CODEZ');
19        use FindBin;
20        use lib "$FindBin::Bin/../lib";
21        use MyApp::Schema;
22        my $s = MyApp::Schema->connect('dbi:Pg:dbname=foo','broseph','elided');
23        CODEZ
24
25        $repl->run;
26
27        # after you run re.pl:
28        $ warn $s->resultset('User')->first->first_name # <-- note that $s works
29

SUPPORT

31       Bugs may be submitted through the RT bug tracker
32       <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL> (or
33       bug-Devel-REPL@rt.cpan.org <mailto:bug-Devel-REPL@rt.cpan.org>).
34
35       There is also an irc channel available for users of this distribution,
36       at "#devel" on "irc.perl.org" <irc://irc.perl.org/#devel-repl>.
37

AUTHOR

39       Matt S Trout - mst (at) shadowcatsystems.co.uk
40       (<http://www.shadowcatsystems.co.uk/>)
41
43       This software is copyright (c) 2007 by Matt S Trout - mst (at)
44       shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>).
45
46       This is free software; you can redistribute it and/or modify it under
47       the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.32.1                      2021-01-27    Devel::REPL::Plugin::LexEnv(3)
Impressum