A different approach is to read the file as records separated by a blank line. Store the data into a hash for each record, then print out only what you need. One benefit is that this method is independent of the order of the lines of the input.
use warnings;
use strict;
$/ = "\n\n";
while (<DATA>) {
my %data;
for my $line (split /\n/) {
my ($k, $v) = split /\s*:\s*/, $line;
$data{$k} = $v;
}
print "$data{'First Name'} $data{'Last Name'}\n" if $data{Location
+} eq 'Central USA';
}
__DATA__
First Name: John
Last Name: Doe
Occupation: Network Administrator
Location: West Coast
First Name: Jane
Last Name: Doe
Occupation: Human Resources
Location: East Coast
First Name: James
Last Name: Doe
Occupation: Technical Support Engineer
Location: Central USA