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