Hello Eric: The similarities are not an accident. I don't know the exact history, but Perl was meant to augment many of the uses of awk and a few other command line utilities. Programming languages that have arisen after Perl borrow some of the motifs and not others. Perl is great as a command-line glue, php as a web glue. Doug