An Introduction to Language Processing with Perl and Prolog