How does that not work?
We don't know what you expect and what you think is wrong with the output.
I assume that you pasted the rendered HTML output, but you may want to reduce your program to the bare minimum. Is the CGI part necessary for testing your program?
Update: Maybe you want to go line by line over this loop and explain what you are doing there and why:
for (my $i = '0'; $i < $nb_page+ 1;$i++) {
my $n2 = $i %= 10;
$min_index += 40;
$string .= "<a href=\"/cgi-bin/recordz.cgi?lang=FR&session
+=1&page=historique&article=1amp;min_index=$min_index&max_inde
+x=40\" ><-$n2-></a>  ";
$nb_page--;
}
I suggest you use a Perl-style loop instead of a C-style loop and use
for my $i (0..$nb_page) {
...
}
Also, why do you use my $i = '0'; instead of my $i = 0;?
Why do you decrement $nb_page at the end of the loop?
What is the $min_index variable about?
What is the $i variable supposed to hold and why do you keep it below 10? |