sub create { 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"; } } do 'C:/Users/jeyakuma/Desktop/perl/tescm.pl'; &difference();