Help for this page

Select Code to Download


  1. or download this
    <br>
    use Data:: Dumper;
    ...
    <br>
    print Dumper $rows; <i>### This displays $VAR1 = []; which means the a
    +rray reference is empty-but why?</i>
    <br>
    
  2. or download this
    my $rows=[];
        $sth = $dbh->prepare( $SQL );
    ...
        print Dumper $dbh; #Prints $VAR1 = bless( {}, 'DBI::db' ); 
        print Dumper $sth;#Prints $VAR1 = bless( {}, 'DBI::st' ); 
        print Dumper $rows; #Prints $VAR1 = [];