Skip to content

Instantly share code, notes, and snippets.

@zby
Created March 6, 2012 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zby/1986752 to your computer and use it in GitHub Desktop.
Save zby/1986752 to your computer and use it in GitHub Desktop.
without Bread::Board
my $log_file_name = "logfile.log";
my $logger = FileLogger->new( log_file_name => $log_file_name );
my $dsn = "dbi:SQLite:dbname=my-app.db";
my $username = "user234";
my $password = "****";
my $dbh = do {
require DBI;
DBI->connect(
$dsn,
$username,
$password,
) || die "Could not connect";
};
my $application = MyApplication->new(
logger => $logger,
dbh => $dbh,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment