in reply to Re: Zipped problem !
in thread Zipped problem !

checks wether the file1 and file 2 are have the same file name and further check wether it has a .zip extension..

Sorry if its a bad logic..

Replies are listed 'Best First'.
Re^3: Zipped problem !
by chb (Deacon) on Feb 04, 2005 at 08:05 UTC
    ($file1 eq $file2) will evaluate to 1 (if the filenames are indeed equal) or the empty string (if the filenames differ). None of these values will ever match /.zip/i. (BTW you have to quote the dot in the regexp if you want to match a literal dot).