Help for this page

Select Code to Download


  1. or download this
        sub database_handle {
            my $dbh = DBI->connect("DBI:Sybase:CRAP", "sa", "");
            die "connect failed: $DBI::errstr" unless $dbh;
            $dbh;
        }
    
  2. or download this
        my $dbh = database_handle();
    
  3. or download this
        {
            my $dbh;
    ...
                $dbh;
            }
        }
    
  4. or download this
        package My::DB;
        use strict;
    ...
        }
    
        sub handle { $_[0]->{handle} }
    
  5. or download this
        my $dbh = My::DB->new->handle;
    
  6. or download this
        sub _execute {
            my $self = shift;
    ...
            }
            return $finish ? $rv : $sth;
        }