# we're fetching a single value (name), so we can call fetchrow_array() # in a scalar context to get the value while (my $item_id = $sth->fetchrow_array ())