@{slice_or_whatever} = map {whatever} @results; #### for (@{$sth->fetchall_arrayref}) { # . . . }