sub triggerNotification { my ( $data ) = @_; my %message_classes = ( 'ARCHITECH' => 1, 'CURR-LIB' => 1, 'MARKET_PL' => 1, ); if ( not exists $message_classes{ $data } ) { # Send an E-Mail notification if the message type is not listed. } }