Thread Die höchste Zahl ermitteln (32 answers)
Opened by PETER_PAN2009 at 2010-03-24 09:59

pq
 2010-03-24 14:22
#135222 #135222
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
interessant.
Code: (dl )
1
2
perl -wle 'my $max = "-Infinity"; for (-10,-20,-1) { $max = $_ if $_ > $max } print $max'
-1


This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Die höchste Zahl ermitteln