in reply to Typeover output
Another trick is to use the modulus operator (%) to only print every 100th, 1000th, etc., line number:
YuckFoo
#!/usr/bin/perl $|++; for my $i (0..10000000) { $i % 100000 or print "line: $i\r"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Typeover output
by L8on (Acolyte) on Jan 14, 2005 at 13:02 UTC |