if(($my $first = /^ policy-map $ouputpol/) ... (my $last = / policy-map/)) {