http://www.perlmonks.org?node_id=1040979


in reply to DBI Style Inquiry

I agree with using consistent style is important, and in perl it is relatively easy to get to a consistent style using perltidy

Carve your preferences in ~/.perltidyrc and use whatever fits best to have the perltidy command do its job.

THINK about every setting. You do not have to agree with my choices, but if you take the time to read them, you will definitely agree AND disagree on several points.

I fully support mje's suggestion to connect with default attributes, like

my $dbh = DBI->connect ($dsn, $user, $pass, { RaiseError => 1, PrintError => 1, ChopBlanks => 1, ShowErrorStatement => 1, FetchHashKeyName => "NAME_lc", });

Enjoy, Have FUN! H.Merijn