Recent Posts
None | 14 sec ago
JavaScript | 20 sec ago
None | 21 sec ago
None | 25 sec ago
PHP | 31 sec ago
None | 32 sec ago
PHP | 59 sec ago
None | 1 min ago
Pixel Bender | 1 min ago
C# | 1 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 10th of Feb 2010 12:24:01 AM Download | Raw | Embed | Report
  1. #!perl
  2. #$ENV{DBIC_TRACE} = 1;
  3.  
  4. use strict;
  5. use warnings;
  6.  
  7. use feature ':5.10';
  8.  
  9. use FindBin;
  10. use lib "$FindBin::Bin/../lib";
  11. use ACD::Schema;
  12. use Config::JFDI;
  13. use Devel::REPL;
  14. my $config = Config::JFDI->new(name => 'acd', path => "$FindBin::Bin/../acd");
  15. my $config_hash = $config->get;
  16. my $connect_info = $config_hash->{Model}{DB}{connect_info};
  17. my $schema = ACD::Schema->connect($connect_info);
  18. $schema->storage->ensure_connected;
  19.  
  20. my $repl = Devel::REPL->new;
  21. $repl->load_plugin($_) for qw(OutputCache MultiLine::PPI Colors Timing History LexEnv);
  22. $repl->run
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: