RE: Perl Cookbook
You can checkout the PLEAC sourceforge project, it has all recipes the cookbook has.. The difference between PLEAC and the book is that PLEAC doesn't offer any motivation or explanation with the recipes.. The project: http://pleac.sourceforge.net/ Perl specific: http://pleac.sourceforge.net/ple
RE: case
Well, there isn't a real case statement as in C or Pascal, but, you can emulate one through a block =) SWITCH: for ($str_fruit) { if (/apple/) { ... last SWITCH; } if (/banana/) { ... last SWITCH; }