From 22ab01e2270e02bdb0a0fff564d05b049cde22b5 Mon Sep 17 00:00:00 2001 From: "Gustavo L. de M. Chaves" Date: Tue, 30 Jul 2019 12:03:09 -0300 Subject: Fix insertion of paragraph separator --- challenge-019/gustavo-chaves/perl5/ch-2.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenge-019/gustavo-chaves/perl5/ch-2.pl b/challenge-019/gustavo-chaves/perl5/ch-2.pl index f4df867955..90a6847d9f 100755 --- a/challenge-019/gustavo-chaves/perl5/ch-2.pl +++ b/challenge-019/gustavo-chaves/perl5/ch-2.pl @@ -28,5 +28,6 @@ while (<>) { $line = $word; } } - say "$line\n" if length($line); + say $line if length($line); + say "\n"; } -- cgit