devel::repl::plugin::lexenv(3pm) debian man page | unix.com

Man Page: devel::repl::plugin::lexenv

Operating Environment: debian

Section: 3pm

Devel::REPL::Plugin::LexEnv(3pm)			User Contributed Perl Documentation			  Devel::REPL::Plugin::LexEnv(3pm)

NAME
Devel::REPL::Plugin::LexEnv - Provide a lexical environment for the REPL
SYNOPSIS
# 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 perl v5.14.2 2010-05-08 Devel::REPL::Plugin::LexEnv(3pm)
Related Man Pages
pdl2(1p) - debian
devel::repl::overview(3pm) - debian
devel::patchperl(3pm) - debian
devel::repl::plugin::nopaste(3pm) - debian
pdl::perldl2::perldl2(3pm) - debian
Similar Topics in the Unix Linux Community
Find columns in a file based on header and print to new file
Weird 'find' results
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections