a doubt

2003-12-15 Thread Ajey
Hi, 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 TIA -Ajey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: a doubt

2003-12-15 Thread John W. Krahn
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 ) {

Re: a doubt

2003-12-15 Thread Ajey
Too good. thanks John. On Mon, 15 Dec 2003, John W. Krahn wrote: > 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 fi

A Doubt on Regular Expression

2003-05-31 Thread Hari Krishnaan
Hi everyone, Can anyone tell me what the following piece of code does : my $cur_dir = cwd (); if ($cur_dir =~ m, ^/.*/ (.*)/xyz,) { } Thanks, hari - Do you Yahoo!? Free online calendar with sync to Outlook(TM).

RE: A Doubt on Regular Expression

2003-05-31 Thread Sethi, Pradeep
3 9:27 AM To: [EMAIL PROTECTED] Subject: A Doubt on Regular Expression Hi everyone, Can anyone tell me what the following piece of code does : my $cur_dir = cwd (); if ($cur_dir =~ m, ^/.*/ (.*)/xyz,) { } Thanks, hari - Do you Yahoo!? Free online calendar wit