ellem has asked for the wisdom of the Perl Monks concerning the following question:
How could I get the output of#! /usr/bin/perl use warnings ; use strict ; use Time::localtime ; my $start = ctime() ; my $one = 1 ; until ($one == 100001) { print $one++ ; print "\n" ; } my $end = ctime() ; print "Started $start\n Ended $end\n\n" ;
to print say every 500th addition?print $one++
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing Some Output
by Limbic~Region (Chancellor) on Aug 01, 2003 at 15:45 UTC | |
|
Re: Printing Some Output
by fletcher_the_dog (Friar) on Aug 01, 2003 at 16:36 UTC | |
|
Re: Printing Some Output
by blue_cowdawg (Monsignor) on Aug 01, 2003 at 15:47 UTC | |
by Limbic~Region (Chancellor) on Aug 01, 2003 at 15:50 UTC | |
by blue_cowdawg (Monsignor) on Aug 01, 2003 at 17:28 UTC | |
|
Re: Printing Some Output
by Abigail-II (Bishop) on Aug 01, 2003 at 15:57 UTC | |
by CountZero (Bishop) on Aug 01, 2003 at 16:01 UTC | |
by Limbic~Region (Chancellor) on Aug 01, 2003 at 16:03 UTC | |
|
Re: Printing Some Output
by NetWallah (Canon) on Aug 01, 2003 at 20:13 UTC |