Thread Bitte um Hilfe für eine Studentin bei PERL Aufgaben!!
(71 answers)
Opened by Anna_mary at 2010-06-20 14:34 Code (perl): (dl
)
1 2 3 4 5 6 7 8 my @prices = (0.99) x 300; my $sum = 0; for (@prices) { $sum += $_; } print $sum; __END__ 297.000000000001 vs. 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: ![]() ![]() |