L
Lex
Hi,
I've got two subroutines, one is saying 'do the other x times'. The other is
checking records from a database and prints the x latest records. However,
when a record matches something, it should be skipped. It all works,
however, what happens is that the results are x - 1. So in the example
underneath I normally get 3 results, except when $vergelijker = jep, than
the I only get 2 results, although I'd prefer 3. I tried this but it doesn't
work:
subroutine 1:
my $i = 2;
for (0 .. $i) {
&html_recordheadline (&array_to_hash($_, @results));
}
subroutine 2: (sub html_recordheadline )
if ($vergelijker ne "jep") {
print qq|
blablabla
|;
}
else { $i++; }
Any help is appreciated,
Lex
I've got two subroutines, one is saying 'do the other x times'. The other is
checking records from a database and prints the x latest records. However,
when a record matches something, it should be skipped. It all works,
however, what happens is that the results are x - 1. So in the example
underneath I normally get 3 results, except when $vergelijker = jep, than
the I only get 2 results, although I'd prefer 3. I tried this but it doesn't
work:
subroutine 1:
my $i = 2;
for (0 .. $i) {
&html_recordheadline (&array_to_hash($_, @results));
}
subroutine 2: (sub html_recordheadline )
if ($vergelijker ne "jep") {
print qq|
blablabla
|;
}
else { $i++; }
Any help is appreciated,
Lex