Help for this page

Select Code to Download


  1. or download this
      package Exported;
    
    ...
          my ( $key ) = @_;
          return $dbh->selectrow_hashref( ... )
      }
    
  2. or download this
      my $dbh = DBI->connect( ... );
      set_dbh( $dbh );
      my $answer = do_query( $key );
    
  3. or download this
      package MyQuery;
    
    ...
          my ( $self, $key ) = @_;
          return $self->{dbh}->selectrow_hashref( ... );
      }
    
  4. or download this
      my $dbh = DBI->connect( ... );
      my $query_obj = MyQuery->new( $dbh );
      my $answer = $query_obj->do_query( $key );
    
  5. or download this
      package Exported;
    
    ...
          my ( $key ) = @_;
          return $dbh->selectrow_hashref( ... );
      }