Thread Prozedur aufrufen (8 answers)
Opened by nour at 2007-01-09 11:26

renee
 2007-01-09 15:17
#72990 #72990
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $stmt = "SELECT filename FROM tabelle";
my $sth = $dbh->prepare($stmt) or die $dbh->errstr();
$sth->execute() or die $dbh->errstr();

while(my ($text) = $sth->fetchrow_array()){
print get_MD5($text);
}

sub get_MD5 {
my ($text) = @_;
my $md5=Digest::MD5->new;
$md5->add($text);
return $md5->hexdigest();
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Prozedur aufrufen