Help for this page

Select Code to Download


  1. or download this
    use DBI;
    use Benchmark;
    ...
              $hash_ref = $dbh->selectall_hashref($statement, $key_field)
              }
                    } );
    
  2. or download this
    # is passed two items, 
    # 1 - the data results in either a hash ref or array ref
    ...
        }
        return $output;
    }
    
  3. or download this
    show_these($hash_ref,[ field3, field2, field1 ]);
    
    ...
        }        
        return $output;
    }
    
  4. or download this
    my $ary_ref;
    my $hash_ref;
    ...
              print $hash_out;
              }
                } );
    
  5. or download this
    sub show_these {
        my ($dr,$show,$sort) = @_;
    ...
        }        
        return $output;
    }
    
  6. or download this
        my $sort =     
        sub { 
    ...
                } keys %{$rhash}
        };
        $hash_out = show_these($hash_ref,[ 'field1','field2','field3'  ],$
    +sort);