in reply to Limit results of a DBI query

my $rows = 0; while( my @result = $sth->fetchrow_array() ) { last if $rows++ >= 10; ... } $sth->finish();

Replies are listed 'Best First'.
Re: Re: Limit results of a DBI query
by peppiv (Curate) on Jan 28, 2003 at 16:56 UTC
    Ah Fletch, you da man! Works like a charm.

    Sooopa Thanx

    peppiv