Skip to content

Instantly share code, notes, and snippets.

@zby
Created January 5, 2011 16:59
Show Gist options
  • Save zby/766589 to your computer and use it in GitHub Desktop.
Save zby/766589 to your computer and use it in GitHub Desktop.
After constants removal, before main DI
package MyClass;
sub new {
my ( $class, $dsn, $user, $password ) = @_;
my $self = bless {}, $class;
my $self->{dbh} = DBI->connect($dsn, $user, $password);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment