and here's the proposed patch hopefully my english is good enough.

Tom
Index: DBI.pm
===================================================================
--- DBI.pm	(Revision 2381)
+++ DBI.pm	(Arbeitskopie)
@@ -4014,7 +4014,17 @@
 In which case the array is copied and each value decremented before
 passing to C</fetchall_arrayref>.
 
+The following example demonstrates the power of this method by fetching 
+all rows as an array-ref and addressing the row's column as hash-keys:
 
+  my $emps = $dbh->selectall_arrayref("select * from emp order by ename", { Slice => {} } );
+  foreach my $emp ( @{ $emps } ) 
+  {
+    print "Employee: " . $emp->{ename} . "\n";
+  }
+
+When using an empty HashRef as Slice-Value all columns will be return in the Hash.
+  
 =item C<selectall_hashref>
 
   $hash_ref = $dbh->selectall_hashref($statement, $key_field);

Reply via email to