in reply to ClearCase and Perl

Can you edit your post to put in code tags? It makes it much, much easier to read. Viz.:

use warnings; use strict; use Cwd; sub main() { my $foo = 'bar'; } main();

versus

use warnings; use strict; use Cwd; sub main() { $foo = 'bar'; } main();

Replies are listed 'Best First'.
Re^2: ClearCase and Perl
by czach12345 (Initiate) on Mar 07, 2014 at 15:00 UTC
    So here is the output as stated before that the script didnt get ran in the vobs directory.
    Scanning dev_BOS_kit_2013.12_B14.02 sh: /main/view/zac129.view1/vobs/app_bos/cleartool: No such file or di +rectory WARNING: dev_BOS_kit_2013.12_B14.02 does not contain any files. Scanning dev_BOS_kit_2014.01_B14.03_2014.01 sh: /main/view/zac129.view1/vobs/app_bos/cleartool: No such file or di +rectory WARNING: dev_BOS_kit_2014.01_B14.03_2014.01 does not contain any files +. And here is if I run it manually in the directory. Scanning dev_BOS_kit_2013.12_B14.02 Scanning dev_BOS_kit_2014.01_B14.03_2014.01 Calculating conflicts ./routines/websupport/WACDCashDisbursement2.MAC.xml dev_BOS_kit_2013.12_B14.02 dev_BOS_kit_2014.01_B14.03_2014.01 ./routines/Accounting/BACDR49.MAC.xml dev_BOS_kit_2013.12_B14.02 dev_BOS_kit_2014.01_B14.03_2014.01 ./classes/DB/DB.UTC.CusipSummary.CLS.xml dev_BOS_kit_2013.12_B14.02 dev_BOS_kit_2014.01_B14.03_2014.01 ./routines/websupport/WACDCashDisbursement.MAC.xml dev_BOS_kit_2013.12_B14.02 dev_BOS_kit_2014.01_B14.03_2014.01 ./routines/websupport/WLOPRCorrectRec.MAC.xml dev_BOS_kit_2013.12_B14.02 dev_BOS_kit_2014.01_B14.03_2014.01 ./classes/OCC/OCC.LOPR.Record.CLS.xml
      Thanks for the pointers. I have found that the directory is changing to the correct vobs directory to run the ClearCase script by checking the working directory before calling  open(FILES, "cleartool find . -nxn -ele \"version(/main/$branch/LATEST)\" -print |"); but the script still calls it from outside the vobs directory. Must be something to deal with the open command how I can calling the cleartool find script.