Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    ...
      my $dbh = DBI->connect($dsn, $user, $pw, { RaiseError => 1, AutoComm
    +it => 1 } );
      return $dbh;
    }
    
  2. or download this
    #!perl
    use strict;
    ...
    
    # whatever you need to get a connection
    sub get_dbh{}