Trying to execute a perl script when viewing

Document ID : KB000116804
Last Modified Date : 03/10/2018
Show Technical Document Details
Question:
Why is Harvest Workbench trying to execute a perl script when I just try to view it within Harvest (double click)?  I thought viewing just did a check out for browse.
Environment:
CA Harvest SCM v12.x and up
Windows platform
SCM Client or Workbench-only Client
Answer:
The Workbench documentation explains that you can specify whether to open a file with a Double click or a Single Click.  This is found in Tools -> Preferences -> General.

User-added image

The thing is, Workbench will use whatever default application is configured in Windows to open the file.  This may be an editor, or in the case of a Perl script it might be the Perl Command Interpreter.  You will see the same behavior if you double click on a perl script from Windows Explorer.

The easiest way to see which default program is configured is to right click on the file in Windows Explorer and select Open with -> Choose default program.

User-added image

The next window will show you which is the default application and offer choices for other applications to use as the default application.  To change the default program, select the new one from the list.  After that, when you double click on the Perl script in Windows or in Workbench, the new default program will be used.

 User-added image
Additional Information:
Here is the link to the page that explains more about setting preferences for Workbench:  https://docops.ca.com/ca-harvest-scm/13-0/en/using/set-workbench-and-eclipse-preferences