in reply to Re: Compare 2 CSV files by two different column and printout
in thread Compare 2 CSV files by two different column and printout

Of course your right. My mistake reporting the matching. The right case is:
$machine =~ m/$hostname/