#!/usr/bin/perl my ($file1,$file2); open(FILE1,"<$ARGV[0]"); open(FILE2,"<$ARGV[1]"); while() { chomp($_); $file1 = $_; $file1=~s/\s+//; #print "$file1 \n"; while() { print "<$file1> \n"; } }