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