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.
Getting the job done is no excuse for not following the rules. Corollary: Following the rules will not get the job done.