in reply to foreach loop

thanks again guys.. After checking it out it seems the second way may work for what I want it to do but I'm not sure how to implement it into my existing code. To be clear, I need that first "div class="row-fluid.." to print the first time and every 6th time after that. Again, Thank you for your help

Replies are listed 'Best First'.
Re^2: foreach loop
by ikegami (Patriarch) on May 14, 2014 at 15:03 UTC
    for my $i (0..$#fs_list) { if ($i % 6 == 0) { ... div ... } ... $fs_list[$i] ... }
    or
    ... div ... for my $i (0..$#fs_list) { ... $fs_list[$i] ... if ($i % 6 == 0) { ... div ... } }
    depending on what you want
Re^2: foreach loop
by vinoth.ree (Monsignor) on May 14, 2014 at 15:09 UTC

    Hi

    print once before the foreach loop then.


    All is well