#!/usr/bin/perl use warnings; use strict; my $dataStr = <)) { chomp ($line); if ($line =~ /Module:\s*(\S+)/) { $module = $1; next; } if ($line =~ /ID:\s*(\S+)/) { $line =~ /:\s*/; $id = $'; next; } if ($line =~ /Customer : (\w+)/i) { print "$module and $id\n" if $1 eq 'yes'; $module = '-- missing module --'; $id = '-- missing ID --'; } } ####