Ad hoc use of perlDBI

For short hacks based on perlDBI, remember this:

exesql("select foo, bar from my.db where foo = $args{foo}");
my $data = $sth->fetchall_arrayref;
print "foo: $data->[0]->[0] \n";
print "bar: $data->[1]->[0] \n";

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 12, 2017