Author: kwilliams
Date: Wed Mar 19 19:03:50 2008
New Revision: 10959
Modified:
Module-Build/trunk/Changes
Module-Build/trunk/lib/Module/Build/Cookbook.pm
Log:
Fix typo in example code
Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes (original)
+++ Module-Build/trunk/Changes Wed Mar 19 19:03:50 2008
@@ -2,6 +2,8 @@
0.2808_02
+ - Fixed a typo in some example code in the Cookbook. [Jeremy Leader]
+
- Custom typemaps were being looked for in places that don't quite
exist; fixed. [Michael G Schwern]
Modified: Module-Build/trunk/lib/Module/Build/Cookbook.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Cookbook.pm (original)
+++ Module-Build/trunk/lib/Module/Build/Cookbook.pm Wed Mar 19 19:03:50 2008
@@ -245,7 +245,7 @@
# Process pod files first
my @e = @{$build->build_elements};
- my $i = grep {$e[$_] eq 'pod'} 0..$#e;
+ my ($i) = grep {$e[$_] eq 'pod'} 0..$#e;
unshift @e, splice @e, $i, 1;
Currently, C<build_elements> has the following default value: