On Wednesday 24 October 2007 10:04, Chas. Owens wrote:
> On 10/24/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote:
> snip
>
> > chomp(@files = qx("cleartool desc -fmt "%[versions]p\n"
> > activity:$ENV{"CLEARCASE_ACTIVITY"}"));
>
> snip
>
> Your problem is the outer quotes.  They don't belong there.  You are
> telling the shell to run the file named
>
> "cleartool desc -fmt "
>
> Since no file named that exists you get the error.  Your code should
> look like
>
> chomp(@files = qx<cleartool desc -fmt "%[versions]p\n"
> activity:$ENV{"CLEARCASE_ACTIVITY"}>);

You also don't need the %ENV variable as qx<> is run by the shell:

chomp(@files = qx<cleartool desc -fmt "%[versions]p\n" 
activity:\$CLEARCASE_ACTIVITY>);



John
-- 
use Perl;
program
fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to