Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect(...);
        some_code_that_forks(); # Perhaps without your knowledge
        # Child process dies, destroying the inherited dbh
        $dbh->do(...); # Breaks because parent $dbh is now broken
    
  2. or download this
    [MySQL]
    user=username
    ...
    port=3306
    db=database_name
    table=table_name
    
  3. or download this
    #!/usr/bin/perl
    use DBI;
    ...
                       'id' => '2'
                     }
            };