Thread Fortschritt mit Intervallen (2 answers)
Opened by jan999 at 2012-02-08 14:17

pq
 2012-02-08 14:35
#155971 #155971
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
du musst den counter nicht unbedingt zurücksetzen. eine modulo-abfrage reicht auch:
Code (perl): (dl )
1
2
3
if ($counter % 50 == 0) {
    ...
}

um die if-abfrage kommst du wohl nicht herum.

vielleicht interessiert dich auch generell CPAN:Smart::Comments
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 Fortschritt mit Intervallen