in reply to Macro goto xlate help
1. You're never actually using the loop's $i variable in the code inside the loop.
2. The second snippet has syntax errors ("For" and curly quotes). You've apparently typed this in or copied it to and then copied it out of Word, which will mangle plain text in this way. You should show us the actual code you're using.
3. The Perlish way to loop over a value between 1 and $sections is with something like for my $i (1..$sections) {}. You might also want to consider a more descriptive variable name than "$i".
|
|---|