Hi,

Please find below my code to compare 2 files
"source.txt,destination.txt" in folder "seek"

#!perl

use File::Compare;

if(Compare("source.txt","destination.txt")==0)
        {
            print "They're equal\n";
        }

Please find below the error I am getting while running the code in
command prompt

D:\seek>perl filematch.pl

syntax error at C:\Program Files\Perl\lib/File/Compare.pm line 3, near
"use 5.00
5_64"
BEGIN failed--compilation aborted at filematch.pl line 3.

Please help me to rectify this problem..

Note: In my other computer with perl tjis code works properly..

Regards,
Prabhu


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to