for my $widget(@widgets){ do_somthing($widget); }