perldiverx has asked for the wisdom of the Perl Monks concerning the following question:
I've already tried turning the @line_rows into $line_rows and using while(my $line = $line_rows->next) {...} but that doesn't work either. Any help would be appreciated.my @line_rows = GiftCardLoad::DB::Lineitem->search(company => $self->{ +snum}, estimate_number => $est_obj->ESTIMATE_NUMBER); foreach (@line_rows) { print "ITEM NUMBER: " . $_->item_number . "\n"; if ($_->item_number eq 'GIFTCARD') { $verified++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::DBI result iteration
by blindluke (Hermit) on Oct 04, 2014 at 08:25 UTC |