<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Remove duplicate lines with perl]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/35338/remove-duplicate-lines-with-perl?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/35338/remove-duplicate-lines-with-perl?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/35338/remove-duplicate-lines-with-perl</guid>
	<pubDate>Wed, 24 Jan 2018 15:12:18 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/35338/remove-duplicate-lines-with-perl</link>
	<title><![CDATA[Remove duplicate lines with perl]]></title>
	<description><![CDATA[<code>#! perl -sw
use strict;
my %lines;
#open DATA, $ARGV[0] or die &quot;Couldn&#039;t open $ARGV[0]: $!\n&quot;;
while (&lt;DATA&gt;) {
    print if not $lines{$_}++;
}

__DATA__
apple
apple
plum
vinegar
apple
banana
banana
banana
apple</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>