my @MetaTags = (.....); foreach my $tag (@MetaTags) { if(($tag !~ /description/gi) && $tag =~ /posted=/gi)) { print qq{$Summary
}; } }