Permalink
Browse files

Fix directory example

`$iter` is a coderef, not an object.
  • Loading branch information...
davorg authored and rspier committed May 16, 2017
1 parent 5df936a commit f1cc98c2031a8bbcf9620afc98b058662b23df71
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/learn/examples/directory_list.html
@@ -11,7 +11,7 @@
# Iterate over the content of foo/bar
my $iter = $dir->iterator;
while (my $file = $iter->next) {
while (my $file = $iter->()) {
# See if it is a directory and skip
next if $file->is_dir();

0 comments on commit f1cc98c

Please sign in to comment.