diff --git a/categories/tutorial/01-word-wrap.pl b/categories/tutorial/01-word-wrap.pl index f1fcb70..437bb62 100644 --- a/categories/tutorial/01-word-wrap.pl +++ b/categories/tutorial/01-word-wrap.pl @@ -35,8 +35,8 @@ (@in) $length += $l.chars; } else { - say ''; - $length = 0; + print "\n$l "; + $length = $l.chars; } } say '';