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.
"Falling in love makes smoking pot all day look like the ultimate in restraint." -- Dave Sim, author of Cerebrus.