in reply to Printing Some Output

ellem,
I would use the modulus (%) operator.
until ($one == 100001) { $one++; print "$one\n" if ($one % 500 == 0); }

Cheers - L~R