for my $widget(@widgets){ do_somthing($widget); } #### foreach (@widget) { do_something($_); }