Query: devel::repl::plugin::lexenv
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
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)
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
One instance of comparing grep and awk |
Weird 'find' results |