Welcome to the Monastery | |
PerlMonks |
Re^2: Comparing Lines within a Word Listby hippo (Bishop) |
on Apr 27, 2016 at 08:53 UTC ( [id://1161617]=note: print w/replies, xml ) | Need Help?? |
This is a good, clear solution (++). However it looks like there is an off-by-one error in the while condition which means that the last two entries of @words are not compared against each other. If we change it to
then it seems to cover that case as well.
In Section
Seekers of Perl Wisdom
|
|