RE: Perl Cookbook

2002-05-15 Thread Marc te Vruchte
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

2002-04-22 Thread Marc te Vruchte
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; }