<?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: Perl script to extract the uniq Ids]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/35993/perl-script-to-extract-the-uniq-ids?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/35993/perl-script-to-extract-the-uniq-ids?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/35993/perl-script-to-extract-the-uniq-ids</guid>
	<pubDate>Mon, 19 Mar 2018 12:34:19 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/35993/perl-script-to-extract-the-uniq-ids</link>
	<title><![CDATA[Perl script to extract the uniq Ids]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl -w
use strict;
use warnings;
use List::Uniq &#039;:all&#039;;

open(my $val,  &quot;&lt;&quot;,  &quot;$ARGV[0]&quot;)  or die &quot;Can&#039;t open input.txt: $!&quot;;
my @allMissed;
while (&lt;$val&gt;)  {
chomp;
my $flag=0;
next if $_ =~ /^\s*$/;
my $string = &quot;$_&quot;;

open(my $file,  &quot;&lt;&quot;,  &quot;$ARGV[1]&quot;)  or die &quot;Can&#039;t open input.txt: $!&quot;;
while (&lt;$file&gt;)  {
	chomp;
	if (/$string/) {
	  #print &quot;$string\n&quot;; 
	$flag=1;
	}
}
close $file;
	if ($flag == 0) {
	push @allMissed, $string;
	}
}

close $val;

my @allRemaining = uniq (@allMissed);
foreach (@allRemaining) { print &quot;$_\n&quot;;}

__END__</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>