Help for this page

Select Code to Download


  1. or download this
    while (my @row = $sth->fetchrow()) {
        $names{$row[0]}{$row[1]} = [$row[2],$row[3],$row[4],$row[5]];
    }
    
  2. or download this
    while (my @row = $sth->fetchrow())
    {
        push @{ $names{ $fields[0] }{ $fields[1] } }, [ @fields[2 .. 5] ];
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
            }
        }
    }
    
  4. or download this
    14:21 >perl 1541_SoPW.pl
    Found: Gay Divorcee
    Found: Gay Deceiver
    
    14:22 >
    
  5. or download this
    my $sth = $dbh->prepare("SELECT *
                            FROM employees
                            WHERE firstname = 'Gay'"
                           );