for my $cont_name (@cont_names) { # do stuff with $cont_name }