http://qs321.pair.com?node_id=379071


in reply to Re^2: String manipulation
in thread String manipulation

My code is working

Try and run it. It does not compile.

My code is working

Fix the compiler errors and then fix the logical errors so it produces what you say it should.

My code is working

Your code is most certainly not working. Just look at the loop and tell me how many loops you will get for $step = 1000 and numOfMembers = 1000. I get 1 loop, how about you? Don't see that adding 1000 members......

for (my $i=2; $i<=$numOfMembers; $i+=$step) {

cheers

tachyon