diff options
Diffstat (limited to 'challenge-053/ryan-thompson/perl/ch-2.pl')
| -rw-r--r-- | challenge-053/ryan-thompson/perl/ch-2.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-053/ryan-thompson/perl/ch-2.pl b/challenge-053/ryan-thompson/perl/ch-2.pl index 081f3895db..585eaa10f1 100644 --- a/challenge-053/ryan-thompson/perl/ch-2.pl +++ b/challenge-053/ryan-thompson/perl/ch-2.pl @@ -19,7 +19,7 @@ sub vowel_string { my @vstrs; while (my $str = shift @queue) { - push @vstrs, $str and edges if $len <= length $str; + push @vstrs, $str and next if $len <= length $str; push @queue, $str.$_ for @{$edges{ substr $str, -1 }} } @vstrs; |
