Permalink
Browse files

No commit message

  • Loading branch information...
spooon committed Apr 15, 2011
1 parent d95c543 commit 8b8c91c6306af84782b77315eaca4f498fc2d148
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/arrays/array_sum.txt
@@ -20,5 +20,5 @@ $sum += $_ for @array;
# List::Util を使って
use List::Util qw/ sum /;
-$sum = sum @array;
+$sum = sum 0, @array; # the 0 is to allow it to work with empty arrays too
||<

0 comments on commit 8b8c91c

Please sign in to comment.