Skip to content

Commit

Permalink
Merge pull request #41 from nicqrocks/patch-1
Browse files Browse the repository at this point in the history
Fixed skipping the last word
  • Loading branch information
paultcochrane committed Mar 10, 2016
2 parents 7717b27 + 1b86ca0 commit 96af943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/tutorial/01-word-wrap.pl
Expand Up @@ -35,8 +35,8 @@ (@in)
$length += $l.chars;
}
else {
say '';
$length = 0;
print "\n$l ";
$length = $l.chars;
}
}
say '';
Expand Down

0 comments on commit 96af943

Please sign in to comment.