$editor = "no editor" if $record->{'services'}[0]{'class'} eq 'Primary'; $editor = "no editor" if $record->{'services'}[0]{'class'} eq 'Secondary';