sub prerequest_collect_files_db_url { open(FILE, "C:/Users/jeyakuma/Desktop/shipping project/input/input.txt"); open HTML1,">C:/Users/jeyakuma/Desktop/shipping project/url processing/competitors_in_url.txt"; while() { chomp; $url=$_; foreach ($url) { do 'C:/Users/jeyakuma/Desktop/perl/xpathconfiguration.pl'; &domain_check(); $x="$competitor.html"; print HTML1 "$x\n"; } } open HTML2,">C:/Users/jeyakuma/Desktop/shipping project/url processing/competitors_in_directory.txt"; opendir(DIR, "C:/Users/jeyakuma/Desktop/shipping project/database"); @files = grep(/\.html$/,readdir(DIR)); foreach $file (@files) { print HTML2"$file\n"; } } closedir dir; close HTML1; close HTML2; close FILE; do "C:/Users/jeyakuma/Desktop/perl/prerequest2.pl"; &find_missing_files(); #### sub find_missing_files { use strict; use warnings; use List::Compare; open F, "; my @b=; my $lc = List::Compare->new(\@a,\@b); my @intersection = $lc->get_intersection; my @firstonly = $lc->get_unique; my @secondonly = $lc->get_complement; #print "Common Items:\n"."@intersection"."\n"; print "Please configure and create dump in Databse for this competitors !!\n"."\n@firstonly"."\n"; print "please give the input URL for the following competitiors !!\n"."\n@secondonly"."\n"; } }