Ajey wrote: > > Hi, Hello,
> How can i catch the difference in 2 files on a perl stmt? > I want to do somethign like, > if (there is some diff in 2 files) > do something1 > else > do something2 > Both files are simple text files use File::Compare; if ( compare( 'file1', 'file2' ) == 0 ) { print "They are the same\n"; } else { # do something else } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>