#/usr/bin/perl -w use strict; use warnings; ######################## ## unrelated code here # ######################## sub triggerNotification { my $data = @_; # data passed into function to be processed if(!($data == 'ARCHITECH') || !($data == 'CURR-LIB') || !($data == 'MARKET_PL')) { # send email notification } else { # do nothing } }