hi
I have two files,
first file format: (It is 4882 raws)
userId country operatingSystem
Second file format is: (It is 400,000 raws)
userId time
I need to merge them as follows:
If userId in both files is the same then the second file shouldd be like this:
userId time country operating system
I made the program in matlab but it takes along time and I'd like to know how to do it in perl. is it possible to read from 2 files in the same time in perl?
Here is Matlab code:
Thanks for help
I have two files,
first file format: (It is 4882 raws)
userId country operatingSystem
Second file format is: (It is 400,000 raws)
userId time
I need to merge them as follows:
If userId in both files is the same then the second file shouldd be like this:
userId time country operating system
I made the program in matlab but it takes along time and I'd like to know how to do it in perl. is it possible to read from 2 files in the same time in perl?
Here is Matlab code:
Code:
for i=1:4882
for j=400,000
if (user(i,:) == Xtrain(j));
Xtrain(j,:) = user(i,:);
end
end
end
Comment