Skip to content

Commit

Permalink
Make target_index() return a list as the docs say
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Jul 2, 2009
1 parent 8ff5996 commit c7c1fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/App/Grok.pm
Expand Up @@ -31,7 +31,7 @@ sub run {
$self->_get_options();

if ($opt{index}) {
print $self->target_index();
print join("\n", $self->target_index()) . "\n";
return;
}

Expand Down Expand Up @@ -90,7 +90,7 @@ sub target_index {
push @index, map { "S32-$_" } @sections;

s/\.pod$// for @index;
return join("\n", @index) . "\n";
return @index;
}

sub detect_source {
Expand Down

0 comments on commit c7c1fe2

Please sign in to comment.