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)NAMEDevel::REPL::Plugin::LexEnv - Provide a lexical environment for the REPLSYNOPSIS# 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::patchperl::plugin(3pm) - debian |
| devel::repl(3pm) - debian |
| devel::repl::plugin::multiline::ppi(3pm) - debian |
| pdl::perldl2::printcontrol(3pm) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| awk or sed - Convert 2 lines to 1 line |
| Is UNIX an open source OS ? |
| Introduction |
| Detecting unused variables... |
| Find columns in a file based on header and print to new file |