Sayed, Irfan (Irfan) 写道:
Hi ,
I have written following script. Problem with the script is that it is
not changing the directory as per the foreach loop and because of that
cleartool command is failing. can somebody please help.
Here is the script. #!/usr/bin/perl -w
@arr = `cleartool lsvob -s`;
foreach(@arr)
{
  `cd $_`;

Replace `cd $path` to chdir($path).
`..` start a shell which was not the environment of the left perl codes run in.

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


Reply via email to