サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
TGS2024
perladvent.org
A frequent pattern when writing database-backed applications with the DBI is to connect to the database and cache the database handle somewhere. A simplified example: package MyApp::DB; use DBI; use strict; my $DBH = DBI->connect('DBI:SQLite:dbname=myapp.db', '', '', { PrintError => 0, RaiseError => 1, AutoCommit => 1, sqlite_unicode => 1, }); sub dbh { $DBH } Just load MyApp::DB anywhere in your
1 2 3 4 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 RSS feed Archives · Contact · FAQ · Links Glorious graphic graciously given by Gary Kirby
Perl Advent Calendar 2009-12-01 Not a creature was stirring… by Jerrad Pierce Minor corrections prompted by the Mo[ou]se team, who really want you to use the larger beast. — Jerrad 2009-12-02 Not even a large and gangly Moose. As you are probably aware, Moose is a relatively nifty OO framework. However, it is somewhat hefty: 6,361 lines of code plus 14 dependencies (5,199 LOC).1 Most of its fans w
2000-12-01 — Data::Dumper 2000-12-02 — LWP::Simple 2000-12-03 — POE::Component::IRC 2000-12-04 — Exporter 2000-12-05 — Time::Local 2000-12-06 — Time::Object 2000-12-07 — Tie::Scalar::Timeout 2000-12-08 — Tie::HashDefaults 2000-12-09 — Crypt::RC4 2000-12-10 — GD 2000-12-11 — Image::Imlib2 2000-12-12 — File::Remote 2000-12-13 — XML::Simple 2000-12-14 — XML::Grove 2000-12-15 — Getopt::Long 2000-12-16
Perl Advent Calendar Archives Previous Calendars 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 Alphabetical Module Listing Chronological Module Listing
Welcome to the Perl Advent Calendar! In the meantime, you might like to check our archives, or help us create it. Contact · FAQ
このページを最初にブックマークしてみませんか?
『The Perl Advent Calendar』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く