<?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 the duplicated line present only next to each other with Perl]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/35339/remove-the-duplicated-line-present-only-next-to-each-other-with-perl?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/35339/remove-the-duplicated-line-present-only-next-to-each-other-with-perl?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/35339/remove-the-duplicated-line-present-only-next-to-each-other-with-perl</guid>
	<pubDate>Wed, 24 Jan 2018 15:35:15 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/35339/remove-the-duplicated-line-present-only-next-to-each-other-with-perl</link>
	<title><![CDATA[Remove the duplicated line present only next to each other with Perl]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl
use strict;
use warnings;

{
  $_ = &lt;DATA&gt;;
  my $next_line;

  while( $next_line = &lt;DATA&gt; )
  {
    #print &quot;current line: $_ -- next line: $next_line$/&quot;;
    print $_ if $_ ne $next_line;
  }
  continue
  {
    $_ = $next_line;
  }
print $_ if eof;
}
__DATA__
apple
apple
plum
vinegar
apple
banana
banana
banana
apple</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>