--- James Edward Gray II <[EMAIL PROTECTED]> wrote: > It makes perfect sense, yes, but I'm still missing > one piece of > information, the broken code you would like fixed. > As I said in my > last message, "...just post that nested foreach and > let us help you fix > it."
My mistake, I thought I had pasted into my message. Here it is: =============================== #for loops that will loop through @list and @primelist, getting the #modulus of @primelist. I anticipate that this will isolate prime #numbers. for ($i = 0; $i <= $input; $i++) { for ($j = 0; $j <= $input; $j++) { if ($primelist[$i] % $list[$j]) { unshift(@newPrimeList, $primelist[$i]); print "I just added $primelist[$i] to newPrimeList.\n"; } } } print "this is primelist: @primelist\n"; print "this is newPrimeList: @newPrimeList\n"; ================================ __________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>