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
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 ) {
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
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
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).