Thread Mehrwertzal finden (3 answers)
Opened by polkana at 2004-06-19 13:32

renee
 2004-06-19 13:56
#83585 #83585
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
my $greatest = 0;
open(CONFIG, "<$config_file") or die $!;
while (my $line = <CONFIG>) {
 my ($login, $pass, $UID, $gid, $name, $home_dir, $shell) = split(':',$line);
 if($UID > $greatest && $UID != 65534){
   $greatest = $UID;
 }
}
close CONFIG;
print "groesste UID: ",$greatest,"\n"
\n\n

<!--EDIT|renee|1087639003-->
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 Mehrwertzal finden