my $new_filename = $full_filename; $new_filename =~ s/(\.gpg)|(\.encrypted)/\.decrypted/;