while() { push @required, $_ if /^abcde.*partname$/; }