my $itr = $teng->search('user', +{name => 'nekokak'}, +{order_by => 'id'});
while ( my $row = $itr->next() ) {
# $row を使ってアレコレする
}
my @rows = $teng->search('user', +{name => 'nekokak'}, +{order_by => 'id'});
# Row object の配列が返る
while ( my $row = $itr->next() ) {
do_something_with_row($row);
$row->nanika_suru();
}
my @rows = $teng->search('user', +{name => 'nekokak'}, +{order_by => 'id'});
$self->important_shori(@rows);
my @array = ();
my $itr = $teng->search('user', +{name => 'nekokak'}, +{order_by => 'id'});
while ( my $row = $itr->next() ) {
# $row を使ってアレコレする
push @array, $some_data; # これだと行数分 @array が作られるので意味がない
}
Use a spacebar or arrow keys to navigate