it will be helpful for us if you can mention the file format.
i am assuming the file format as below
date:file contents
Option-1
in the above case take the lines if the file and use split(/:/,$lineInFile1) to get the contents and use the same to compare both files by what way you require.
Option-2
use split and get the file contents and then generate 2 temp files for both of your files and then use unix commands to check whether both the files are same not [like cmp, diff commands in unix]
-Nagendra
hi i have two dat files foldername06.dat(created on feb 13) and p_06(created on feb 16)
both the files are output files and are same except the date which occurs on each line of the output
now i have to write a perl code to compare only the two files not considering the date part such that they are equal .
please let me know the code