Skip to content

Instantly share code, notes, and snippets.

@zby
Created January 5, 2011 16:57
Show Gist options
  • Save zby/766588 to your computer and use it in GitHub Desktop.
Save zby/766588 to your computer and use it in GitHub Desktop.
Before removing constants
package MyClass;
sub new {
my ( $class ) = @_;
my $self = bless {}, $class;
$self->{dbh} = DBI->connect( 'DBI:mysql:database=db', 'dbuser', 'dbpassword' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment