in reply to joined records from multiple csv

but speed is very slow

Ofcourse it's slow. You are scanning an entire file2 for every line in file1. This means that your your execute time is approximately square of the size of the file

You could have done some search here, thats ok, I got you some node which already discussed here,read out this node.

comparing csv files in perl

compare records in two csv files


All is well. I learn by answering your questions...