in reply to Re^5: Need to have perl script to compare two txt files and print difference along with under which segment the difference is
in thread Need to have perl script to compare two txt files and print difference along with under which segment the difference is

Hello poj.. Is it possible to have file name behind the segment name to identify from which file the record is from. output looks like below
lodv EJHFG sdmd IJFH sdmd LAKJSK
Thanks much for your efforts on this..
  • Comment on Re^6: Need to have perl script to compare two txt files and print difference along with under which segment the difference is
  • Download Code

Replies are listed 'Best First'.
Re^7: Need to have perl script to compare two txt files and print difference along with under which segment the difference is
by poj (Abbot) on Jan 24, 2019 at 15:33 UTC
    } else { my $file = $file[0]; $file = $file[1] if defined $rec->[1]; printf "%s %s %s\n",$segment,$row,$file; }
    poj