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.
If you push the "extra ice" button on the soft drink vending machine, you won't get any ice. If you push the "no ice" button, you'll get ice, but no cup.