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

Replies are listed 'Best First'.
Re^4: String manipulation
by hotshot (Prior) on Aug 01, 2004 at 14:42 UTC
    sorry, I pasted my code before fixing the iterator, should be $i++ instead of $i+=$step and missing '*' in the formula inside the for loop

      I figured as much but was in a bad mood, plus I miss Abigail and Abigail-IIs somewhat cuasic responses. Could have been that red too.

      cheers

      tachyon