Help for this page

Select Code to Download


  1. or download this
    
    my @userids = ('XD4555', 'JJKKKK');
    ...
    
        return @{$mails}; # Caller wants an array, so deref
    }
    
  2. or download this
    my @userids = ('XD4555', 'JJKKKK');
    
    ...
                             WHERE m.USERID_IM IN (?)");
    $sth->execute(\@userids);
    my $mails = $sth->fetchall_arrayref();
    
  3. or download this
    use strict;
    use warnings;
    ...
    my $mails = $query->fetchall_arrayref();
    $sth->finish;
    
  4. or download this
    
    if($dbh->do(...somestuff...) && $dbh->do(...otherstuff...)) {
    ...
        print STDERR "Database error: ", $dbh->errstr, "\n";
        $dbh->rollback;
    }