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.
"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison