next;
}
- # Is this line the beginning of a block of data (typically an address or a note)?
+ # Is this line the end of a block of data (typically an address or a note)?
if ( /^\.(.*?)_END.$/ ) {
if ("$1." ne $section) {
print STDERR "Error in record $serial, line $line (input line $.): got an end-of-$1 but I thought I was in a $section block!\n";
}
# Strip off a prefix, if there is one
- foreach $prefix (qw( Ms. Mrs. Mr. Dr. )) {
+ foreach $prefix (qw( Ms\. Mrs\. Mr\. Dr\. )) {
if ($temp_name =~ /$prefix /i) {
$records[$u]{'l_prefix_name'} = $prefix;
$temp_name =~ s/$prefix //i;
}
# Strip off a suffix, if there is one
- foreach $suffix (qw( Jr. Sr. II III IV )) {
+ foreach $suffix (qw( Jr\. Jr Sr\. Sr II III IV )) {
if ($temp_name =~ / $suffix/i) {
$records[$u]{'l_suffix_name'} = $suffix;
$temp_name =~ s/ $suffix//i;