my row = ""; my $count = 1; my $switch; for ($i=0; $i < $max; $i++) { ($href, $text, $function) = split( "\e", $filelist[$i+$j*$max], 3 );     if ($switch)     {     $switch=0;     $row .= qq|function - $text;     $count++;     }          else     {     $switch=1;     $row .= qq|function - $text;     $count++;     } }