if ($match =~ /\.txt|.pgp$/i) { # Match files read to .pgp or .txt ignoring others