my @items = (0, 1); printf "%s\n", join ', ', map {$_->{car}} @array[@items];