$ perl -ne 'print if $seen{/$_(\h\.)?}++' story.rst [download]
In reply to Perl using $seen with regex by abdan