how to do something

From: Lex (nospam_at_peng.nl)
Date: 10/25/03


Date: Sat, 25 Oct 2003 18:39:59 +0100

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



Relevant Pages

  • Re: how to do something
    ... one is saying 'do the other x times'. ... > other is checking records from a database and prints the x latest ... If $i is supposed to be accessed in _both_ subroutines, then declare ...
    (comp.lang.perl.misc)
  • Re: Good Books on MultiValue Databases
    ... new info there, right?), the database structure when converting from ... Once again your comment about Codd borders on another topic which I'll ... (and I'm not saying you're saying this) that MV is somehow ... Different RDBMS platforms support Null differently. ...
    (comp.databases.pick)
  • Re: Exceeds maximum index number
    ... of optional "enforce relational integrity" property. ... > he was saying was that the relationships exist whether or not you use ... default join in the query design grid. ... > being prevented from implementing the definition of that database. ...
    (microsoft.public.access.tablesdbdesign)
  • RE: Auto Number Excel Forms During Save As
    ... I do agree with what you're saying. ... I believe this should be in an database ... Dim ro As Range ... I'm working on a purchase order form that is available to multiple ...
    (microsoft.public.excel.programming)
  • Re: Database design, Keys and some other things
    ... especially for the complex database ... Can you be specific about what these limitations are? ... Are you saying there ... > identify one car in the Real World. ...
    (comp.databases.theory)