I got my copy of "The AWK Programming Language" at Half Price Books. It's got code to implement a relational database in AWK if you need joins. And AWK code should run in perl with minimal fuss.
Work is the crab grass in the lawn of life. -- Schulz