PLEAC-Common Lisp


Table of Contents
Foreword
1. Strings (100.0%)
2. Numbers (94.7%)
3. Dates and Times (62.5%)
4. Arrays (100.0%)
5. Hashes (97.1%)
6. Pattern Matching (20.8%)
7. File Access (23.9%)
8. File Contents (2.4%)
9. Directories (0.0%)
10. Subroutines (91.7%)
11. References and Records (75.0%)
12. Packages, Libraries, and Modules (35.0%)
13. Classes, Objects, and Ties (87.5%)
14. Database Access (0.0%)
15. User Interfaces (0.0%)
16. Process Management and Communication (0.0%)
17. Sockets (0.0%)
18. Internet Services (5.6%)
19. CGI Programming (0.0%)
20. Web Automation (0.0%)
A. Helpers

Foreword

Following the Perl Cookbook (by Tom Christiansen and Nathan Torkington, published by O'Reilly) spirit, the PLEAC Project aims to gather fans of programming, in order to implement the solutions in other programming languages.

In this document, you'll find an implementation of the Solutions of the Perl Cookbook in the Common Lisp language.

Various submissions rely on third party http://cliki.net/ASDF packages (e.g. cl-ppcre, soundex, etc) and specific helper utility functions (WHEN-LET, CHOMP, etc). Used ASDF packages are assumed to be installable via http://cliki.net/ASDF-INSTALL and helper utilities are available in the appendix. Most of the demonstrated solutions are free from low-level Common Lisp optimizations (no type declarations, missing tail-call-optimizations, etc) for the sake of simplicity. While this doesn't mean such programs would perform poorly, in certain situations particular optimizations might be necessary. It should also be noted that, most of the scripts are given in plain function form. For how to execute these functions using a script file, please consult to your implementation's http://en.wikipedia.org/wiki/Shebang_(Unix) documentation. (You may also be interested in trivial-shell ASDF package for a lightweight shell interaction layer.)