I need to search fileB with fileA values. unfortunately, I cant get grep to work. Can anyone help.
fileA has 7 char numbers
fileB has 7 char plus some text
$data_file="FILEA.TXT";
open(DAT, $data_file) || die("Could not open file!");
@raw_data=<DAT>;
close(DAT);
$fileb="FILEB.TXT";
open(DAT2, $fileb) || die("Could not open file!");
@fileb=<DAT2>;
close(DAT2);