Perl scripts to assist in the generation and application of patches