I am looking for a perl program that implement the Knuth-Morris-Pratt algorithm to compare it to the standard Perl string matching expression in term of running time and memory spaces used. Does Perl used the same algorithm for its string pattern matching? Please provide some link to the code/