Sorry!! again, failed to send to the list
---------- Forwarded message ----------
Date: Thu, 22 Aug 2002 00:29:11 +0530 (IST)
From: Sudarshan Raghavan <[EMAIL PROTECTED]>
To: Javeed SAR <[EMAIL PROTECTED]>
Subject: Re: regular expression
On Wed, 21 Aug 2002, Javeed SAR wrote:
> # I want to grep for files with .dsp or .vbp extensions here, if the
> number of files with extension .dsp or .vbp is > 1 i should exit saying
> project exists. or else send mail.
>
> am i doing the right thing?
>
>
> @projectFilesExist = <$file\{*.dsp,*.vbp}>;
This can also be written as
@projectFilesExist = <$file\*.{dsp,vbp}>;
> if ($projectFilesExist> 1)
This should be if (@projectFilesExist > 1)
> {
> die "\n\nThe element ($PN) is not allowed to be added to
> ClearCase,Because a project already exists.Please contact Clearcase
> administrator or javeed (Extn 4919).\n";
> }
> else{
> $cmd= `sendmail`;
> }
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]