Devel:...:LexEnv(3pm)
π NAME π
Devel::REPL::Plugin::LexEnv β bestie, it literally provides a lexical environment for the REPL π«Ά
It's the plugin that hands your REPL a real, actual lex env so the stuff you use and the vars you my stay alive between lines. It's giving "I got you" energy, fr fr.
β¨ VERSION β¨
This is version 1.003029 β that's the one, no cap π
π SYNOPSIS π
okay so here's the whole vibe, copy it exactly, don't freestyle it:
# 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
Like. The $s you declared inside that heredoc? It survives. It shows up in your REPL like it never left. That's the whole point and it's lowkey iconic π
πΈ SUPPORT πΈ
Found a bug? Don't suffer in silence bestie π β submit it through the RT bug tracker here:
https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL
or, if email is more your thing:
bug-Devel-REPL@rt.cpan.org β that's <mailto:bug-Devel-REPL@rt.cpan.org> in mailto form π
There's also an irc channel for users of this distribution, and it lives at "#devel" on "irc.perl.org" β aka <irc://irc.perl.org/#devel-repl>, come hang out, the vibes are immaculate π
π AUTHOR π
Matt S Trout β mst (at) shadowcatsystems.co.uk
and his corner of the internet: http://www.shadowcatsystems.co.uk/ β that's <http://www.shadowcatsystems.co.uk/> if you wanna click it π
π COPYRIGHT AND LICENCE π
This software is copyright (c) 2007 by Matt S Trout - mst (at) shadowcatsystems.co.uk (http://www.shadowcatsystems.co.uk/).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, honestly π§
and that's the whole page, bestie β¨ this was Devel:...:LexEnv(3pm) from perl v5.34.0, dated 2022-06-03 β go forth and lexically scope, mwah π
π¦ where this page comes from
- debian bookworm: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms